ILIAS  release_7 Revision v7.30-3-g800a261c036
Incident.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Modules\Test;
22
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}
An exception for terminatinating execution or to throw for unit testing.
any(callable $are_you_ok, array $array)
@template A
Definition: Incident.php:30