1 | <?php |
||
9 | class PurchaseController extends Controller |
||
10 | { |
||
11 | /** |
||
12 | * PurchaseController constructor. |
||
13 | */ |
||
14 | 2 | public function __construct() |
|
18 | |||
19 | /** |
||
20 | * Get all purchases. |
||
21 | * @return array |
||
22 | */ |
||
23 | 1 | public function all() |
|
30 | |||
31 | /** |
||
32 | * Get the specified purchase. |
||
33 | * |
||
34 | * @param $id |
||
35 | * |
||
36 | * @return array |
||
37 | */ |
||
38 | public function show($id) |
||
46 | } |
||
47 |