1 | <?php |
||
6 | abstract class AbstractMailbox |
||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | private $name; |
||
12 | |||
13 | /** |
||
14 | * |
||
15 | */ |
||
16 | protected const RFC_3501_FIXED = [ |
||
17 | "INBOX" => true, |
||
18 | ]; |
||
19 | |||
20 | /** |
||
21 | * Mailbox constructor. |
||
22 | * @param string $name |
||
23 | */ |
||
24 | final public function __construct(string $name) |
||
29 | |||
30 | /** |
||
31 | * @param string $name |
||
32 | */ |
||
33 | abstract protected function validate(string $name): void; |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function __toString(): string |
||
42 | |||
43 | } |