@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | /** |
| 15 | 15 | * Create a new GoodTill instance. |
| 16 | 16 | * |
| 17 | - * @return void |
|
| 17 | + * @return \FLAIRUK\GoodTillSystem\RESTInterface |
|
| 18 | 18 | */ |
| 19 | 19 | public function __construct($user) |
| 20 | 20 | { |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * Set Product Outlet ID |
| 30 | 30 | * |
| 31 | 31 | * @param string $id |
| 32 | - * @return object |
|
| 32 | + * @return Voucher |
|
| 33 | 33 | */ |
| 34 | 34 | public function setID(string $id): object { |
| 35 | 35 | $this->id = $id; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Create a new GoodTill instance. |
| 20 | 20 | * |
| 21 | - * @return void |
|
| 21 | + * @return \FLAIRUK\GoodTillSystem\RESTInterface |
|
| 22 | 22 | */ |
| 23 | 23 | public function __construct($user) |
| 24 | 24 | { |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Create a new GoodTill instance. |
| 20 | 20 | * |
| 21 | - * @return void |
|
| 21 | + * @return \FLAIRUK\GoodTillSystem\RESTInterface |
|
| 22 | 22 | */ |
| 23 | 23 | public function __construct($user) |
| 24 | 24 | { |
@@ -56,12 +56,15 @@ discard block |
||
| 56 | 56 | * Create a new Good Till Product instance. |
| 57 | 57 | * |
| 58 | 58 | * @param array $user |
| 59 | - * @return void |
|
| 59 | + * @return \FLAIRUK\GoodTillSystem\RESTInterface |
|
| 60 | 60 | */ |
| 61 | 61 | public function __construct(array $user) { |
| 62 | 62 | parent::__construct($user, $this->url); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $url |
|
| 67 | + */ |
|
| 65 | 68 | public function setURL($url = null): void { |
| 66 | 69 | $this->url = $url ? $url : Config::get('goodtill.routes.api') . self::PRODUCTS; |
| 67 | 70 | } |
@@ -71,7 +74,7 @@ discard block |
||
| 71 | 74 | * Product Set Outlet ID |
| 72 | 75 | * |
| 73 | 76 | * @param $id |
| 74 | - * @return object |
|
| 77 | + * @return Product |
|
| 75 | 78 | */ |
| 76 | 79 | public function setID($id): object { |
| 77 | 80 | $this->id = $id; |
@@ -82,7 +85,7 @@ discard block |
||
| 82 | 85 | * Product Set Outlet ID |
| 83 | 86 | * |
| 84 | 87 | * @param $id |
| 85 | - * @return object |
|
| 88 | + * @return Product |
|
| 86 | 89 | */ |
| 87 | 90 | public function setOutlet($id): object { |
| 88 | 91 | $this->outlet_id = ['outlet_id' => $id]; |
@@ -93,7 +96,7 @@ discard block |
||
| 93 | 96 | * Product Set Outlet ID |
| 94 | 97 | * |
| 95 | 98 | * @param $id |
| 96 | - * @return object |
|
| 99 | + * @return Product |
|
| 97 | 100 | */ |
| 98 | 101 | public function setName($name): object { |
| 99 | 102 | $this->product_name = ['product_name' => $name]; |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * Create a new Good Till Product instance. |
| 21 | 21 | * |
| 22 | 22 | * @param array $user |
| 23 | - * @return void |
|
| 23 | + * @return \FLAIRUK\GoodTillSystem\RESTInterface |
|
| 24 | 24 | */ |
| 25 | 25 | public function __construct(array $user) { |
| 26 | 26 | parent::__construct($user, $this->url); |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | * Product Set Outlet ID |
| 36 | 36 | * |
| 37 | 37 | * @param $id |
| 38 | - * @return object |
|
| 38 | + * @return Staff |
|
| 39 | 39 | */ |
| 40 | 40 | public function setID($id): object { |
| 41 | 41 | $this->id = $id; |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * Product Set Outlet ID |
| 47 | 47 | * |
| 48 | 48 | * @param $id |
| 49 | - * @return object |
|
| 49 | + * @return Staff |
|
| 50 | 50 | */ |
| 51 | 51 | public function setOutlet($id): object { |
| 52 | 52 | $this->outlet_id = ['outlet_id' => $id]; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * Product Set Outlet ID |
| 58 | 58 | * |
| 59 | 59 | * @param $id |
| 60 | - * @return object |
|
| 60 | + * @return Staff |
|
| 61 | 61 | */ |
| 62 | 62 | public function setName($name): object { |
| 63 | 63 | $this->product_name = ['product_name' => $name]; |