| Conditions | 1 |
| Paths | 1 |
| Total Lines | 50 |
| Lines | 50 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function getData(array $params = []) |
||
| 12 | { |
||
| 13 | $field_key = lcfirst($this->namespace) . 'Event'; |
||
| 14 | $query = <<<QUERY |
||
| 15 | query GET_EVENT(\$id: ID!) { |
||
| 16 | {$field_key}(id: \$id, idType: DATABASE_ID) { |
||
| 17 | id |
||
| 18 | dbId |
||
| 19 | cacheId |
||
| 20 | allowDonations |
||
| 21 | allowOverflow |
||
| 22 | altRegPage |
||
| 23 | created |
||
| 24 | description |
||
| 25 | displayDescription |
||
| 26 | displayTicketSelector |
||
| 27 | isActive |
||
| 28 | isCancelled |
||
| 29 | isExpired |
||
| 30 | isInactive |
||
| 31 | isPostponed |
||
| 32 | isSoldOut |
||
| 33 | isUpcoming |
||
| 34 | maxRegistrations |
||
| 35 | memberOnly |
||
| 36 | name |
||
| 37 | order |
||
| 38 | phoneNumber |
||
| 39 | shortDescription |
||
| 40 | status |
||
| 41 | timezoneString |
||
| 42 | visibleOn |
||
| 43 | wpUser { |
||
| 44 | id |
||
| 45 | name |
||
| 46 | } |
||
| 47 | __typename |
||
| 48 | } |
||
| 49 | } |
||
| 50 | QUERY; |
||
| 51 | $this->setParams( |
||
| 52 | [ |
||
| 53 | 'operation_name' => 'GET_EVENT', |
||
| 54 | 'variables' => $params, |
||
| 55 | 'query' => $query, |
||
| 56 | ] |
||
| 57 | ); |
||
| 58 | |||
| 59 | return $this->getQueryResponse($field_key); |
||
| 60 | } |
||
| 61 | } |
||
| 62 |