@@ 21-31 (lines=11) @@ | ||
18 | /** |
|
19 | * {@inheritDoc} |
|
20 | */ |
|
21 | protected function matches($other) { |
|
22 | if(!is_string($other)) { |
|
23 | return FALSE; |
|
24 | } |
|
25 | ||
26 | if(is_string($other) && defined($other)) { |
|
27 | return TRUE; |
|
28 | } |
|
29 | ||
30 | return FALSE; |
|
31 | } |
|
32 | ||
33 | ||
34 | /** |
@@ 40-56 (lines=17) @@ | ||
37 | /** |
|
38 | * {@inheritDoc} |
|
39 | */ |
|
40 | protected function matches($other) { |
|
41 | if(!is_string($other)) { |
|
42 | return FALSE; |
|
43 | } |
|
44 | ||
45 | if(!defined($other)) { |
|
46 | return FALSE; |
|
47 | } |
|
48 | ||
49 | if(constant($other) === $this->value) { |
|
50 | return TRUE; |
|
51 | } |
|
52 | ||
53 | //@codeCoverageIgnoreStart |
|
54 | return FALSE; |
|
55 | //@codeCoverageIgnoreEnd |
|
56 | } |
|
57 | ||
58 | /** |
|
59 | * {@inheritDoc} |