@@ 71-81 (lines=11) @@ | ||
68 | /** |
|
69 | * {@inheritdoc} |
|
70 | */ |
|
71 | public function contains($element) |
|
72 | { |
|
73 | $criteria = Criteria::eq($element); |
|
74 | foreach ($this->elements as $key => $value) { |
|
75 | if ($criteria->evaluate($value)) { |
|
76 | return true; |
|
77 | } |
|
78 | } |
|
79 | ||
80 | return false; |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * {@inheritdoc} |
@@ 103-113 (lines=11) @@ | ||
100 | /** |
|
101 | * {@inheritdoc} |
|
102 | */ |
|
103 | public function contains($element) |
|
104 | { |
|
105 | $criteria = Criteria::eq($element); |
|
106 | foreach ($this->elements as $key => $value) { |
|
107 | if ($criteria->evaluate($value)) { |
|
108 | return true; |
|
109 | } |
|
110 | } |
|
111 | ||
112 | return false; |
|
113 | } |
|
114 | ||
115 | /** |
|
116 | * {@inheritdoc} |