Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | final class Message implements FlashMessageInterface |
||
22 | { |
||
23 | private bool $consumed = false; |
||
24 | |||
25 | public function __construct( |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @inheritDoc |
||
33 | */ |
||
34 | public function type(): FlashMessageType |
||
35 | { |
||
36 | return $this->type; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | public function message(): string |
||
43 | { |
||
44 | return $this->message; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | public function wasConsumed(): bool |
||
51 | { |
||
52 | return $this->consumed; |
||
53 | } |
||
54 | |||
55 | public function consume(): self |
||
59 | } |
||
60 | } |
||
61 |