Option::forAll( callable $callable )
This is similar to map() except that the return value of the callable has no meaning.
Description
The passed callable is simply executed if the option is non-empty, and ignored if the option is empty. This method is preferred for callables with side-effects, while map() is intended for callables without side-effects.
Parameters
- $callable
-
(Required)
Return
(PhpOptionOption)
Source
File: vendor/phpoption/phpoption/src/PhpOption/Option.php
abstract public function forAll($callable);