| 1 | <?php |
||
| 8 | class BarangaysController extends Controller |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var BarangaysRepository |
||
| 12 | */ |
||
| 13 | protected $repository; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * BarangaysController constructor. |
||
| 17 | * |
||
| 18 | * @param BarangaysRepository $repository |
||
| 19 | */ |
||
| 20 | public function __construct(BarangaysRepository $repository) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $cityId |
||
| 27 | * @return \Illuminate\Database\Eloquent\Collection |
||
| 28 | */ |
||
| 29 | public function getByCity($cityId) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get barangays by region, province and city ID. |
||
| 36 | * |
||
| 37 | * @param string $regionId |
||
| 38 | * @param string $provinceId |
||
| 39 | * @param string $cityId |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getBarangaysByRegionProvinceCityId($regionId, $provinceId, $cityId) |
||
| 46 | } |
||
| 47 |