ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
Incident.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Modules\Test;
22 
23 class Incident
24 {
30  public function any(callable $are_you_ok, array $array): bool
31  {
32  foreach ($array as $x) {
33  if ($are_you_ok($x)) {
34  return true;
35  }
36  }
37 
38  return false;
39  }
40 }
any(callable $are_you_ok, array $array)
A
Definition: Incident.php:30