| 1 | <?php |
||
| 11 | trait AllTrait |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Returns true when all elements of this iterable are not empty, otherwise returns false |
||
| 15 | * |
||
| 16 | * When the optional $STRATEGY argument is given, this argument is used to obtain the |
||
| 17 | * value which is tested to be empty. |
||
| 18 | * |
||
| 19 | * > iter\iterable([1, 'hello world', true])->all() |
||
| 20 | * true |
||
| 21 | * |
||
| 22 | * > iter\iterable([1, null, 3])->all() |
||
| 23 | * false |
||
| 24 | * |
||
| 25 | * @param \Closure $strategy Optional, when not specified !empty will be used |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | 1 | public function all($strategy = null) |
|
| 32 | } |
||
| 33 |