| @@ 226-234 (lines=9) @@ | ||
| 223 | * |
|
| 224 | * @return bool |
|
| 225 | */ |
|
| 226 | public function containsAll(array $matches = []) { |
|
| 227 | foreach($matches as $match) { |
|
| 228 | if(!StringUtils::contains($this->string, $match)) { |
|
| 229 | return FALSE; |
|
| 230 | } |
|
| 231 | } |
|
| 232 | ||
| 233 | return TRUE; |
|
| 234 | } |
|
| 235 | ||
| 236 | /** |
|
| 237 | * Determines that the current string contains ANY of the |
|
| @@ 244-252 (lines=9) @@ | ||
| 241 | * |
|
| 242 | * @return bool |
|
| 243 | */ |
|
| 244 | public function containsAny(array $matches = []) { |
|
| 245 | foreach($matches as $match) { |
|
| 246 | if(StringUtils::contains($this->string, $match)) { |
|
| 247 | return TRUE; |
|
| 248 | } |
|
| 249 | } |
|
| 250 | ||
| 251 | return FALSE; |
|
| 252 | } |
|
| 253 | ||
| 254 | /** |
|
| 255 | * Returns the defined part of the current string |
|