ILIAS  release_7 Revision v7.30-3-g800a261c036
StreamOptions.php
Go to the documentation of this file.
1<?php
2declare(strict_types=1);
3
5
16final class StreamOptions
17{
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}
An exception for terminatinating execution or to throw for unit testing.
Class StreamOptions The streaming options are used by the stream implementation.
__construct(array $metadata=[], int $size=self::UNKNOWN_STREAM_SIZE)
StreamOptions constructor.