Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class InvalidAuthorException extends BaseException |
||
8 | { |
||
9 | const CODE = '0104'; |
||
10 | |||
11 | public function __construct($author) |
||
12 | { |
||
13 | $this->initialize($author); |
||
14 | } |
||
15 | |||
16 | /** |
||
17 | * {@inheritDoc} |
||
18 | */ |
||
19 | public function getErrorMessage() : string |
||
20 | { |
||
21 | return 'The author name [%s] is an invalid author name. E.g: Name <[email protected]>'; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * {@inheritDoc} |
||
26 | */ |
||
27 | public function getErrorCode() : string |
||
30 | } |
||
31 | } |
||
32 |