1 | <?php |
||
20 | final class EquatableCollectionContains extends TraversableContains |
||
21 | { |
||
22 | /** |
||
23 | * @var mixed |
||
24 | */ |
||
25 | 27 | private $value; |
|
|
|||
26 | |||
27 | 27 | /** |
|
28 | 15 | * @inheritdoc |
|
29 | */ |
||
30 | public function __construct($value, bool $checkForObjectIdentity = true, bool $checkForNonObjectIdentity = false) |
||
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | protected function matches($other): bool |
||
52 | |||
53 | /** |
||
54 | * @inheritdoc |
||
55 | */ |
||
56 | protected function failureDescription($other): string |
||
68 | |||
69 | /** |
||
70 | * @param \Traversable|array $other |
||
71 | * |
||
72 | * @return bool |
||
73 | */ |
||
74 | private function collectionContainsAnEqualEquatableObject($other) |
||
84 | } |
||
85 |