ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
StreamOptions.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types=1);
3 
5 
19 final class StreamOptions
20 {
21  const UNKNOWN_STREAM_SIZE = -1;
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 }
__construct(array $metadata=[], int $size=self::UNKNOWN_STREAM_SIZE)
StreamOptions constructor.
font size
Definition: langcheck.php:162