@@ -16,6 +16,7 @@ trait WoocommerceTrait
16
16
public function all ($ endpoint = '' , $ options = [])
17
17
{
18
18
self ::__construct ();
19
+
19
20
return $ this ->client ->get ($ endpoint , $ options );
20
21
}
21
22
@@ -31,6 +32,7 @@ public function all($endpoint = '', $options = [])
31
32
public function find ($ endpoint = '' , $ options = [])
32
33
{
33
34
self ::__construct ();
35
+
34
36
return $ this ->client ->get ($ endpoint , $ options );
35
37
}
36
38
@@ -46,6 +48,7 @@ public function find($endpoint = '', $options = [])
46
48
public function create ($ endpoint , $ data )
47
49
{
48
50
self ::__construct ();
51
+
49
52
return $ this ->client ->post ($ endpoint , $ data );
50
53
}
51
54
@@ -61,6 +64,7 @@ public function create($endpoint, $data)
61
64
public function update ($ endpoint , $ data )
62
65
{
63
66
self ::__construct ();
67
+
64
68
return $ this ->client ->put ($ endpoint , $ data );
65
69
}
66
70
@@ -76,6 +80,7 @@ public function update($endpoint, $data)
76
80
public function delete ($ endpoint , $ options = [])
77
81
{
78
82
self ::__construct ();
83
+
79
84
return $ this ->client ->delete ($ endpoint , $ options );
80
85
}
81
86
@@ -87,6 +92,7 @@ public function delete($endpoint, $options = [])
87
92
public function getRequest ()
88
93
{
89
94
self ::__construct ();
95
+
90
96
return $ this ->client ->http ->getRequest ();
91
97
}
92
98
@@ -98,6 +104,7 @@ public function getRequest()
98
104
public function getResponse ()
99
105
{
100
106
self ::__construct ();
107
+
101
108
return $ this ->client ->http ->getResponse ();
102
109
}
103
110
0 commit comments