ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
StreamOptions.php
Go to the documentation of this file.
1<?php
2declare(strict_types=1);
3
5
19final class StreamOptions
20{
22
26 private $size;
30 private $metadata;
31
32
39 public function __construct(array $metadata = [], int $size = self::UNKNOWN_STREAM_SIZE)
40 {
41 $this->size = $size;
42 $this->metadata = $metadata;
43 }
44
45
49 public function getSize() : int
50 {
51 return $this->size;
52 }
53
54
58 public function getMetadata() : array
59 {
60 return $this->metadata;
61 }
62}
An exception for terminatinating execution or to throw for unit testing.
__construct(array $metadata=[], int $size=self::UNKNOWN_STREAM_SIZE)
StreamOptions constructor.
font size
Definition: langcheck.php:162