ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
StreamResolver.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
30{
31 public function __construct(private FileStream $stream)
32 {
33 }
34
35 public function getStream(): FileStream
36 {
37 return $this->stream;
38 }
39
40 public function isInMemory(): bool
41 {
42 return $this->stream->getMetadata('uri') === StreamAccess::PHP_MEMORY;
43 }
44}
The base interface for all filesystem streams.
Definition: FileStream.php:32