Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
123 | public function toArray(): array |
||
124 | { |
||
125 | $payload = [ |
||
126 | 'ip' => $this->ip, |
||
127 | 'time' => $this->time, |
||
128 | 'ttl' => $this->ttl, |
||
129 | 'daytime' => $this->dayTime, |
||
130 | 'translit' => $this->translit, |
||
131 | ]; |
||
132 | |||
133 | return \array_filter( |
||
134 | \array_merge($payload, $this->recipient->buildMessage()) |
||
135 | ); |
||
138 |