1 | <?php |
||
8 | class ConcealedEmailCollection implements IteratorAggregate |
||
9 | { |
||
10 | /** @var string */ |
||
11 | private $domain; |
||
12 | |||
13 | /** @var array */ |
||
14 | private $dictionary = []; |
||
15 | |||
16 | public function __construct(string $domain) |
||
20 | |||
21 | public static function make(string $domain): self |
||
25 | |||
26 | public function fill(array $emails): self |
||
34 | |||
35 | public function getIterator() |
||
39 | |||
40 | private function add(string $email) |
||
54 | |||
55 | private function addOrUpdateIncrement(string $string): string |
||
68 | } |
||
69 |