| 1 | <?php |
||
| 7 | class CachingBarangaysRepository extends BarangaysRepositoryEloquent implements BarangaysRepository |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \App\Repositories\Utilities\BarangaysRepository |
||
| 11 | */ |
||
| 12 | protected $repository; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var \Illuminate\Contracts\Cache\Repository |
||
| 16 | */ |
||
| 17 | protected $cache; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * CachingBarangaysRepository constructor. |
||
| 21 | * |
||
| 22 | * @param BarangaysRepository $repository |
||
| 23 | * @param Cache $cache |
||
| 24 | */ |
||
| 25 | public function __construct(BarangaysRepository $repository, Cache $cache) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Get barangays by region, province and city ID. |
||
| 35 | * |
||
| 36 | * @param int $regionId |
||
| 37 | * @param int $provinceId |
||
| 38 | * @param int $cityId |
||
| 39 | * @return \Illuminate\Database\Eloquent\Collection |
||
| 40 | */ |
||
| 41 | public function getByProvinceRegionAndCityId($regionId, $provinceId, $cityId) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Get barangays by region, province and city ID. |
||
| 52 | * |
||
| 53 | * @param int $cityId |
||
| 54 | * @return \Illuminate\Database\Eloquent\Collection |
||
| 55 | */ |
||
| 56 | public function getByCity($cityId) |
||
| 62 | } |
||
| 63 |
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..