ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
StreamOptions.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types=1);
3 
5 
16 final class StreamOptions
17 {
18  const UNKNOWN_STREAM_SIZE = -1;
19 
23  private $size;
27  private $metadata;
28 
34  public function __construct(array $metadata = [], int $size = self::UNKNOWN_STREAM_SIZE)
35  {
36  $this->size = $size;
37  $this->metadata = $metadata;
38  }
39 
43  public function getSize() : int
44  {
45  return $this->size;
46  }
47 
51  public function getMetadata() : array
52  {
53  return $this->metadata;
54  }
55 }
__construct(array $metadata=[], int $size=self::UNKNOWN_STREAM_SIZE)
StreamOptions constructor.
Class StreamOptions The streaming options are used by the stream implementation.