Total Complexity | 7 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 64.29% |
Changes | 0 |
1 | <?php |
||
14 | final class Email implements ComparatorInterface |
||
15 | { |
||
16 | private $value; |
||
17 | |||
18 | 3 | public function __construct(Model $email) |
|
19 | { |
||
20 | 3 | $this->value = (string) $email; |
|
21 | 3 | } |
|
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | 1 | public function property(): string |
|
27 | { |
||
28 | 1 | return 'email'; |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 1 | public function sign(): string |
|
35 | { |
||
36 | 1 | return '='; |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 1 | public function value() |
|
43 | { |
||
44 | 1 | return $this->value; |
|
45 | } |
||
46 | |||
47 | public function and(SpecificationInterface $specification): CompositeInterface |
||
48 | { |
||
49 | // not implemented |
||
50 | } |
||
51 | |||
52 | public function or(SpecificationInterface $specification): CompositeInterface |
||
53 | { |
||
54 | // not implemented |
||
55 | } |
||
56 | |||
57 | public function not(): NotInterface |
||
59 | // not implemented |
||
60 | } |
||
61 | } |
||
62 |