| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 79 | public function create(string $body, array $toIds, \DateTime $limit = null): array |
||
| 80 | { |
||
| 81 | return $this->client->post( |
||
| 82 | "rooms/{$this->roomId}/tasks", |
||
| 83 | [ |
||
| 84 | 'body' => $body, |
||
| 85 | 'to_ids' => implode(',', $toIds), |
||
| 86 | 'limit' => $limit instanceof \DateTime ? $limit->getTimestamp() : null, |
||
| 87 | ] |
||
| 88 | ); |
||
| 89 | } |
||
| 90 | } |
||
| 91 |