Definition
/**
* Create a path to php memory stream.
*
* @param string $path - default = '' - path is used as an identifier in memory filesystem, so we can write multiple files to memory at once, each path is a new handle
* @param null|array{'stream': 'memory'|'temp'} $options - when nothing is provided, 'temp' stream is used by default
*
* @return Path
*/
path_memory(string $path, ?array $options) : Path