| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 24 | public function __construct(Chat $chat, User $recipient, string $text = null, Template $template = null)  | 
            ||
| 25 |     { | 
            ||
| 26 |         if ($text === null && $template === null) { | 
            ||
| 27 |             throw new InvalidArgumentException('Either text or template should be set.'); | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 30 | $this->chat = $chat;  | 
            ||
| 31 | $this->recipient = $recipient;  | 
            ||
| 32 | $this->text = $text;  | 
            ||
| 33 | $this->template = $template;  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 41 |