| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 61 | public function createTicket(array $ticket, array $customField = []) |
||
| 62 | { |
||
| 63 | ; |
||
| 64 | $this->request( |
||
| 65 | "POST", |
||
| 66 | "tickets", |
||
| 67 | [ |
||
| 68 | "requester" => [ |
||
| 69 | "email" => ($ticket["requester_email"]), |
||
| 70 | "name" => ($ticket["requester_name"]) |
||
| 71 | ], |
||
| 72 | "summary" => ($ticket["summary"] ?? null), |
||
| 73 | "comments" => [ |
||
| 74 | "description" => [ |
||
| 75 | "content" => ($ticket["comments_content"] ?? null) |
||
| 76 | ] |
||
| 77 | ], |
||
| 78 | "customField" => $customField |
||
| 79 | ], |
||
| 80 | null, |
||
| 81 | true |
||
| 82 | ); |
||
| 83 | |||
| 84 | return $this; |
||
| 85 | } |
||
| 86 | } |