Total Complexity | 3 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class CustomerQuery { |
||
24 | /** |
||
25 | * Query arguments. |
||
26 | * |
||
27 | * @var array<string, int> |
||
28 | */ |
||
29 | private $args; |
||
30 | |||
31 | /** |
||
32 | * Construct customer query. |
||
33 | * |
||
34 | * @param array<string, int> $args Query arguments. |
||
35 | */ |
||
36 | 24 | public function __construct( $args = array() ) { |
|
37 | 24 | $this->args = \wp_parse_args( |
|
38 | 24 | $args, |
|
39 | array( |
||
40 | 24 | 'user_id' => null, |
|
41 | 'organization_id' => null, |
||
42 | ) |
||
43 | ); |
||
44 | 24 | } |
|
45 | |||
46 | /** |
||
47 | * Get customers. |
||
48 | * |
||
49 | * @return array<object> |
||
50 | */ |
||
51 | 24 | public function get_customers() { |
|
78 | } |
||
79 | } |
||
80 |