| Total Complexity | 3 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| 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 | 24 | public function __construct( $args = array() ) { |
|
| 30 | 24 | $this->args = \wp_parse_args( |
|
|
|
|||
| 31 | 24 | $args, |
|
| 32 | array( |
||
| 33 | 24 | 'user_id' => null, |
|
| 34 | 'organization_id' => null, |
||
| 35 | ) |
||
| 36 | ); |
||
| 37 | 24 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Get customers. |
||
| 41 | * |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | 24 | public function get_customers() { |
|
| 71 | } |
||
| 72 | } |
||
| 73 |