Skip to content

Commit fd0fd11

Browse files
authored
Update PaymentMethod.php
1 parent e543144 commit fd0fd11

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

src/Models/PaymentMethod.php

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,11 @@
22

33
namespace Codexshaper\WooCommerce\Models;
44

5-
use Codexshaper\WooCommerce\Facades\WooCommerce;
5+
use Codexshaper\WooCommerce\Traits\QueryBuilderTrait;
66

77
class 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
}

0 commit comments

Comments
 (0)