ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
StreamOptions.php
Go to the documentation of this file.
1<?php
2
4
19{
21
25 private $size;
29 private $metadata;
30
31
38 public function __construct(array $metadata = [], $size = self::UNKNOWN_STREAM_SIZE)
39 {
40 $this->size = $size;
41 $this->metadata = $metadata;
42 }
43
44
48 public function getSize()
49 {
50 return $this->size;
51 }
52
53
57 public function getMetadata()
58 {
59 return $this->metadata;
60 }
61}
An exception for terminatinating execution or to throw for unit testing.
__construct(array $metadata=[], $size=self::UNKNOWN_STREAM_SIZE)
StreamOptions constructor.