| @@ 220-233 (lines=14) @@ | ||
| 217 | /** |
|
| 218 | * |
|
| 219 | */ |
|
| 220 | private function contains(string $lookup, array $values): bool |
|
| 221 | { |
|
| 222 | if (empty($values)) { |
|
| 223 | return false; |
|
| 224 | } |
|
| 225 | ||
| 226 | foreach ($values as $value) { |
|
| 227 | if ( ! $this->$lookup($value)) { |
|
| 228 | return false; |
|
| 229 | } |
|
| 230 | } |
|
| 231 | ||
| 232 | return true; |
|
| 233 | } |
|
| 234 | ||
| 235 | /** |
|
| 236 | * Returns whether an association for all of zero or more keys exist. |
|
| @@ 61-74 (lines=14) @@ | ||
| 58 | /** |
|
| 59 | * @inheritDoc |
|
| 60 | */ |
|
| 61 | public function contains(...$values): bool |
|
| 62 | { |
|
| 63 | if ( ! $values) { |
|
| 64 | return false; |
|
| 65 | } |
|
| 66 | ||
| 67 | foreach ($values as $value) { |
|
| 68 | if ($this->find($value) === false) { |
|
| 69 | return false; |
|
| 70 | } |
|
| 71 | } |
|
| 72 | ||
| 73 | return true; |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * @inheritDoc |
|