Conditions | 2 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 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 | ] |
||
91 |