File tree Expand file tree Collapse file tree 1 file changed +3
-26
lines changed Expand file tree Collapse file tree 1 file changed +3
-26
lines changed Original file line number Diff line number Diff line change 22
33namespace Codexshaper \WooCommerce \Models ;
44
5- use Codexshaper \WooCommerce \Facades \ WooCommerce ;
5+ use Codexshaper \WooCommerce \Traits \ QueryBuilderTrait ;
66
77class PaymentMethod extends BaseModel
88{
9+ use QueryBuilderTrait;
10+
911 protected $ endpoint = 'payment_gateways ' ;
10-
11- /**
12- * Retrieve all Items.
13- *
14- * @param array $options
15- *
16- * @return array
17- */
18- protected function all ($ options = [])
19- {
20- return WooCommerce::all ($ this ->endpoint , $ options );
21- }
22-
23- /**
24- * Retrieve single Item.
25- *
26- * @param int $id
27- * @param array $options
28- *
29- * @return object
30- */
31- protected function find ($ id , $ options = [])
32- {
33- return WooCommerce::find ("{$ this ->endpoint }/ {$ id }" , $ options );
34- }
3512}
You can’t perform that action at this time.
0 commit comments