Total Complexity | 3 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class CustomerQuery { |
||
24 | /** |
||
25 | * Construct customer query. |
||
26 | * |
||
27 | * @param array $args Query arguments. |
||
28 | */ |
||
29 | public function __construct( $args = array() ) { |
||
30 | $this->args = \wp_parse_args( |
||
|
|||
31 | $args, |
||
32 | array( |
||
33 | 'user_id' => null, |
||
34 | 'organization_id' => null, |
||
35 | ) |
||
36 | ); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Get customers. |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | public function get_customers() { |
||
68 | } |
||
69 | } |
||
70 |