Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | public function __construct(string $subject, string $text) |
||
33 | { |
||
34 | $subject = trim($subject); |
||
35 | |||
36 | if (empty($subject)) { |
||
37 | throw InvalidDescriptionException::emptySubject(); |
||
38 | } |
||
39 | |||
40 | $text = trim($text); |
||
41 | |||
42 | if (empty($text)) { |
||
43 | throw InvalidDescriptionException::emptyText(); |
||
44 | } |
||
45 | |||
46 | $this->subject = $subject; |
||
47 | $this->text = $text; |
||
48 | } |
||
66 |