| 1 | <?php |
||
| 8 | class Sale extends API { |
||
| 9 | |||
| 10 | protected $url; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Create a new GoodTill instance. |
||
| 14 | * |
||
| 15 | * @return void |
||
|
|
|||
| 16 | */ |
||
| 17 | public function __construct($user) |
||
| 23 | |||
| 24 | public function setURL($url = null): void { |
||
| 27 | |||
| 28 | |||
| 29 | /** |
||
| 30 | * Product Set Outlet ID |
||
| 31 | * |
||
| 32 | * @param $id |
||
| 33 | * @return object |
||
| 34 | */ |
||
| 35 | public function summary($name): object { |
||
| 40 | |||
| 41 | } |
||
| 42 |
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.