ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
StreamOptions.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
30final 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}
The streaming options are used by the stream implementation.
__construct(private array $metadata=[], private int $size=self::UNKNOWN_STREAM_SIZE)
StreamOptions constructor.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: FileStream.php:19