Option::fromReturn()
Method: Creates a lazy-option with the given callback.
Source: vendor/phpoption/phpoption/src/PhpOption/Option.php:88
Method: Creates a lazy-option with the given callback.
Source: vendor/phpoption/phpoption/src/PhpOption/Option.php:88
Method: Creates an option given a return value.
Source: vendor/phpoption/phpoption/src/PhpOption/Option.php:43
Method: Returns the value if available, or throws an exception otherwise.
Source: vendor/phpoption/phpoption/src/PhpOption/Option.php:139
Method: Returns the value if available, or the results of the callable.
Source: vendor/phpoption/phpoption/src/PhpOption/Option.php:160
Method: Returns the value if available, or the default value if not.
Source: vendor/phpoption/phpoption/src/PhpOption/Option.php:148
Method: Returns the value if available, or throws the passed exception.
Source: vendor/phpoption/phpoption/src/PhpOption/Option.php:169
Method: This is similar to map() below except that the return value has no meaning; the passed callable is simply executed if the option is non-empty, and ignored if the option is empty.
Source: vendor/phpoption/phpoption/src/PhpOption/Option.php:225
Method: Returns true if a value is available, false otherwise.
Source: vendor/phpoption/phpoption/src/PhpOption/Option.php:183
Method: Returns true if no value is available, false otherwise.
Source: vendor/phpoption/phpoption/src/PhpOption/Option.php:176
Method: Applies the callable to the value of the option if it is non-empty, and returns the return value of the callable wrapped in Some().
Source: vendor/phpoption/phpoption/src/PhpOption/Option.php:254