1 | <?php |
||
14 | class Matches |
||
15 | { |
||
16 | const TRUE_EMPTY = true; |
||
17 | const FALSE_EMPTY = false; |
||
18 | |||
19 | /** |
||
20 | * @var MatchInterface[] |
||
21 | */ |
||
22 | private $matches; |
||
23 | |||
24 | /** |
||
25 | * @var boolean |
||
26 | */ |
||
27 | private $emptyValue; |
||
28 | |||
29 | /** |
||
30 | * @param array $list |
||
31 | */ |
||
32 | 1 | public function __construct(array $list, $emptyValue = false) |
|
37 | |||
38 | /** |
||
39 | * @return MatchInterface[] |
||
40 | */ |
||
41 | 1 | public function getMatches() |
|
45 | |||
46 | /** |
||
47 | * @param string $item |
||
48 | * @return MatchInterface |
||
49 | */ |
||
50 | 1 | public function getMatch($item) |
|
56 | |||
57 | /** |
||
58 | * @param string $email |
||
59 | * @return boolean |
||
60 | */ |
||
61 | 9 | public function equals($email) |
|
75 | } |
||
76 |