| 1 | <?php |
||
| 19 | class ColorProfile |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var StreamInterface |
||
| 23 | */ |
||
| 24 | private $stream; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Create color profile object. |
||
| 28 | * |
||
| 29 | * @param StreamInterface $stream |
||
| 30 | */ |
||
| 31 | public function __construct(StreamInterface $stream) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get stream. |
||
| 38 | * |
||
| 39 | * @return StreamInterface |
||
| 40 | */ |
||
| 41 | public function getStream() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get data. |
||
| 48 | * |
||
| 49 | * @throws RuntimeException |
||
| 50 | * |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getData() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Create color profile object from filename. |
||
| 69 | * |
||
| 70 | * @param string $filename |
||
| 71 | * |
||
| 72 | * @throws RuntimeException |
||
| 73 | * |
||
| 74 | * @return $this |
||
| 75 | */ |
||
| 76 | public static function fromFilename($filename) |
||
| 84 | } |
||
| 85 |