| 1 | <?php |
||
| 8 | class CountryRepository |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var CountryCollection |
||
| 12 | */ |
||
| 13 | private static $collection; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var CountryEntity[] |
||
| 17 | */ |
||
| 18 | private static $items = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var CountryMapper |
||
| 22 | */ |
||
| 23 | private static $mapper; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var CountryLoader |
||
| 27 | */ |
||
| 28 | private static $loader; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return CountryCollection |
||
| 32 | */ |
||
| 33 | 2 | public static function findAll() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $shortCode |
||
| 44 | * |
||
| 45 | * @return null|CountryEntity |
||
| 46 | */ |
||
| 47 | 1 | public static function findByShortCode($shortCode) |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @return CountryLoader |
||
| 63 | */ |
||
| 64 | 2 | private static function getLoader() |
|
| 72 | |||
| 73 | /** |
||
| 74 | * @return CountryMapper |
||
| 75 | */ |
||
| 76 | 2 | private static function getMapper() |
|
| 84 | } |
||
| 85 |
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..