ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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 {
35  public const UNKNOWN_STREAM_SIZE = -1;
36 
43  public function __construct(private array $metadata = [], private int $size = self::UNKNOWN_STREAM_SIZE)
44  {
45  }
46 
47  public function getSize(): int
48  {
49  return $this->size;
50  }
51 
55  public function getMetadata(): array
56  {
57  return $this->metadata;
58  }
59 }
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.