| 1 | <?php declare(strict_types=1); |
||
| 13 | class MediaThumbnail implements MediaThumbnailInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $url; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var int |
||
| 22 | */ |
||
| 23 | protected $width; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | protected $height; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var DateTime |
||
| 32 | */ |
||
| 33 | protected $time; |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | 3 | public function getUrl() : ? string |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $url |
||
| 46 | * @return MediaThumbnailInterface |
||
| 47 | */ |
||
| 48 | 3 | public function setUrl(?string $url) : MediaThumbnailInterface |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return int |
||
| 57 | */ |
||
| 58 | 2 | public function getWidth() : ?int |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @param int $width |
||
| 65 | * @return MediaThumbnailInterface |
||
| 66 | */ |
||
| 67 | 3 | public function setWidth(?int $width) : MediaThumbnailInterface |
|
| 73 | |||
| 74 | /** |
||
| 75 | * @return int |
||
| 76 | */ |
||
| 77 | 2 | public function getHeight() : ?int |
|
| 81 | |||
| 82 | /** |
||
| 83 | * @param int $height |
||
| 84 | * @return MediaThumbnailInterface |
||
| 85 | */ |
||
| 86 | 3 | public function setHeight(?int $height) : MediaThumbnailInterface |
|
| 92 | |||
| 93 | /** |
||
| 94 | * @return DateTime |
||
| 95 | */ |
||
| 96 | 2 | public function getTime() : ? \DateTime |
|
| 100 | |||
| 101 | /** |
||
| 102 | * @param \DateTime $time |
||
| 103 | * @return MediaThumbnailInterface |
||
| 104 | */ |
||
| 105 | 1 | public function setTime(? \DateTime $time) : MediaThumbnailInterface |
|
| 111 | } |
||
| 112 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..