| 1 | <?php |
||
| 8 | class Staff extends API { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * The url attribute. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $url = 'staffs'; |
||
| 16 | |||
| 17 | const STAFF = 'staffs'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Create a new Good Till Product instance. |
||
| 21 | * |
||
| 22 | * @param array $user |
||
| 23 | * @return void |
||
|
|
|||
| 24 | */ |
||
| 25 | public function __construct(array $user) { |
||
| 28 | |||
| 29 | public function setURL($url = null): void { |
||
| 32 | |||
| 33 | |||
| 34 | /** |
||
| 35 | * Product Set Outlet ID |
||
| 36 | * |
||
| 37 | * @param $id |
||
| 38 | * @return object |
||
| 39 | */ |
||
| 40 | public function setID($id): object { |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Product Set Outlet ID |
||
| 47 | * |
||
| 48 | * @param $id |
||
| 49 | * @return object |
||
| 50 | */ |
||
| 51 | public function setOutlet($id): object { |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Product Set Outlet ID |
||
| 58 | * |
||
| 59 | * @param $id |
||
| 60 | * @return object |
||
| 61 | */ |
||
| 62 | public function setName($name): object { |
||
| 67 | |||
| 68 | } |
Adding a
@returnannotation 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.