1 | <?php |
||
21 | class Customer implements RouteInterface |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | Root |
||
26 | * |
||
27 | @param=> first_name, last_name, email, phone |
||
28 | */ |
||
29 | 3 | public static function root() |
|
33 | |||
34 | /** |
||
35 | Create customer |
||
36 | * |
||
37 | @param=> first_name, last_name, email, phone |
||
38 | */ |
||
39 | 2 | public static function create() |
|
56 | |||
57 | /** |
||
58 | Get customer by ID or code |
||
59 | */ |
||
60 | 2 | public static function fetch() |
|
69 | |||
70 | /** |
||
71 | List customers |
||
72 | */ |
||
73 | 2 | public static function getList() |
|
82 | |||
83 | /** |
||
84 | Update customer |
||
85 | * |
||
86 | @param=> first_name, last_name, email, phone |
||
87 | */ |
||
88 | 2 | public static function update() |
|
101 | } |
||
102 |