Total Complexity | 6 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | abstract class Mailcode_Collection_Error |
||
22 | { |
||
23 | /** |
||
24 | * @var integer |
||
25 | */ |
||
26 | protected int $code = 0; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected string $matchedText = ''; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected string $message = ''; |
||
37 | |||
38 | protected ?Mailcode_Commands_Command $command = null; |
||
39 | |||
40 | public function getCode() : int |
||
41 | { |
||
42 | return $this->code; |
||
43 | } |
||
44 | |||
45 | public function getMatchedText() : string |
||
46 | { |
||
47 | return $this->matchedText; |
||
48 | } |
||
49 | |||
50 | public function getMessage() : string |
||
51 | { |
||
52 | return $this->message; |
||
53 | } |
||
54 | |||
55 | public function getCommand() : ?Mailcode_Commands_Command |
||
56 | { |
||
57 | return $this->command; |
||
58 | } |
||
59 | |||
60 | public function isUnknownCommand() : bool |
||
61 | { |
||
62 | return $this->code === Mailcode_Commands_Command::VALIDATION_UNKNOWN_COMMAND_NAME; |
||
63 | } |
||
64 | |||
65 | public function isTypeNotSupported() : bool |
||
68 | } |
||
69 | } |
||
70 |