@@ -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]; |