| 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 | * @return string |
||
| 50 | */ |
||
| 51 | public function getData() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Create color profile object from filename. |
||
| 64 | * |
||
| 65 | * @param string $filename |
||
| 66 | * |
||
| 67 | * @return $this |
||
| 68 | */ |
||
| 69 | public static function fromFilename($filename) |
||
| 77 | } |
||
| 78 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.