Completed
Branch master (cc24e6)
by Phil™
03:41
created
src/Models/Product.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,12 +56,15 @@  discard block
 block discarded – undo
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 $id
67
+     */
65 68
     public function setURL($id = null): void { 
66 69
         if (!is_null($id)) {
67 70
             $this->url = Config::get('goodtill.routes.api') . self::PRODUCTS . '/' . $this->id ?? $this->id;
@@ -74,7 +77,7 @@  discard block
 block discarded – undo
74 77
      * Product Set Outlet ID
75 78
      * 
76 79
      * @param $id
77
-     * @return object
80
+     * @return Product
78 81
      */
79 82
     public function setID($id): object {
80 83
         $this->id = $id;
@@ -85,7 +88,7 @@  discard block
 block discarded – undo
85 88
      * Product Set Outlet ID
86 89
      * 
87 90
      * @param $id
88
-     * @return object
91
+     * @return Product
89 92
      */
90 93
     public function setOutlet($id): object {
91 94
         $this->outlet_id = ['outlet_id' => $id];
@@ -96,7 +99,7 @@  discard block
 block discarded – undo
96 99
      * Product Set Outlet ID
97 100
      * 
98 101
      * @param $id
99
-     * @return object
102
+     * @return Product
100 103
      */
101 104
     public function setName($name): object {
102 105
         $this->product_name = ['product_name' => $name];
Please login to merge, or discard this patch.
src/Models/Register.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
29 29
      * Set Product Outlet ID
30 30
      * 
31 31
      * @param string $id
32
-     * @return object
32
+     * @return Register
33 33
      */
34 34
     public function setID(string $id): object {
35 35
         $this->id = $id;
Please login to merge, or discard this patch.
src/Models/Report.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /**
20 20
      * Create a new GoodTill instance.
21 21
      *
22
-     * @return void
22
+     * @return \FLAIRUK\GoodTillSystem\RESTInterface
23 23
      */
24 24
     public function __construct($user)
25 25
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace FLAIRUK\GoodTillSystem\Models;
4 4
 
5 5
 use FLAIRUK\GoodTillSystem\API;
6
-use Illuminate\Support\Facades\Config;
7
-use FLAIRUK\GoodTillSystem\Models\Sale;
8 6
 use FLAIRUK\GoodTillSystem\Models\Product;
7
+use FLAIRUK\GoodTillSystem\Models\Sale;
8
+use Illuminate\Support\Facades\Config;
9 9
 
10 10
 class Report extends API {
11 11
 
Please login to merge, or discard this patch.
src/Models/Sale.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     /**
13 13
      * Create a new GoodTill instance.
14 14
      *
15
-     * @return void
15
+     * @return \FLAIRUK\GoodTillSystem\RESTInterface
16 16
      */
17 17
     public function __construct($user)
18 18
     {
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * Product Set Outlet ID
31 31
      * 
32 32
      * @param $id
33
-     * @return object
33
+     * @return Sale
34 34
      */
35 35
     public function summary($name): object {
36 36
         $this->product_name = ['product_name' => $name];
Please login to merge, or discard this patch.
src/Models/VATRate.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      * Create a new Good Till VATRate instance.
12 12
      *
13 13
      * @param array $user
14
-     * @return void
14
+     * @return \FLAIRUK\GoodTillSystem\RESTInterface
15 15
      * 
16 16
      * @source https://apidoc.thegoodtill.com/#api-VatRate
17 17
      */
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * Set VATRate Outlet ID
34 34
      * 
35 35
      * @param string $id
36
-     * @return object
36
+     * @return VATRate
37 37
      */
38 38
     public function setID(string $id): object {
39 39
         $this->id = $id;
Please login to merge, or discard this patch.
src/Models/Voucher.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.