1 | <?php |
||
23 | class ProvinceController extends Controller |
||
24 | { |
||
25 | protected $indonesia; |
||
26 | protected $province; |
||
27 | protected $city; |
||
28 | protected $district; |
||
29 | protected $village; |
||
30 | |||
31 | /** |
||
32 | * Create a new controller instance. |
||
33 | * |
||
34 | * @return void |
||
|
|||
35 | */ |
||
36 | public function __construct() |
||
44 | |||
45 | /** |
||
46 | * Display a listing of the resource. |
||
47 | * |
||
48 | * @return \Illuminate\Http\Response |
||
49 | */ |
||
50 | public function get() |
||
65 | |||
66 | /** |
||
67 | * Display the specified resource. |
||
68 | * |
||
69 | * @param \App\Province $province |
||
70 | * @return \Illuminate\Http\Response |
||
71 | */ |
||
72 | public function show($id) |
||
85 | } |
||
86 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.