| Conditions | 1 |
| Paths | 1 |
| Total Lines | 42 |
| Lines | 42 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function getData(array $where_params = []) |
||
| 22 | { |
||
| 23 | $field_key = lcfirst($this->namespace) . 'Datetimes'; |
||
| 24 | $query = <<<QUERY |
||
| 25 | query GET_DATETIMES(\$where: {$this->namespace}RootQueryDatetimesConnectionWhereArgs, \$first: Int, \$last: Int ) { |
||
| 26 | {$field_key}(where: \$where, first: \$first, last: \$last) { |
||
| 27 | nodes { |
||
| 28 | id |
||
| 29 | dbId |
||
| 30 | cacheId |
||
| 31 | capacity |
||
| 32 | description |
||
| 33 | endDate |
||
| 34 | isActive |
||
| 35 | isExpired |
||
| 36 | isPrimary |
||
| 37 | isSoldOut |
||
| 38 | isTrashed |
||
| 39 | isUpcoming |
||
| 40 | length |
||
| 41 | name |
||
| 42 | order |
||
| 43 | reserved |
||
| 44 | sold |
||
| 45 | status |
||
| 46 | startDate |
||
| 47 | __typename |
||
| 48 | } |
||
| 49 | __typename |
||
| 50 | } |
||
| 51 | } |
||
| 52 | QUERY; |
||
| 53 | $this->setParams([ |
||
| 54 | 'operation_name' => 'GET_DATETIMES', |
||
| 55 | 'variables' => [ |
||
| 56 | 'first' => 100, |
||
| 57 | ], |
||
| 58 | 'query' => $query, |
||
| 59 | ]); |
||
| 60 | |||
| 61 | return $this->getQueryResponse($field_key, $where_params); |
||
| 62 | } |
||
| 63 | } |
||
| 64 |