| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | public function __construct( |
||
| 10 | protected string $message, |
||
| 11 | protected ?string $title, |
||
| 12 | protected ?string $type = null |
||
| 13 | ) { |
||
| 14 | $this->message = htmlspecialchars($message, ENT_QUOTES); |
||
| 15 | $this->title = $title ? htmlspecialchars($title, ENT_QUOTES) : ''; |
||
| 16 | $this->type = $type ?? NotificationType::$info; |
||
| 17 | } |
||
| 46 |