ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
StreamOptions.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Filesystem\Stream;
22 
30 final class StreamOptions
31 {
32  public const UNKNOWN_STREAM_SIZE = -1;
33 
40  public function __construct(private array $metadata = [], private int $size = self::UNKNOWN_STREAM_SIZE)
41  {
42  }
43 
44  public function getSize(): int
45  {
46  return $this->size;
47  }
48 
52  public function getMetadata(): array
53  {
54  return $this->metadata;
55  }
56 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: FileStream.php:19
__construct(private array $metadata=[], private int $size=self::UNKNOWN_STREAM_SIZE)
StreamOptions constructor.
The streaming options are used by the stream implementation.