Option::getOrCall( callable $callable )
Returns the value if available, or the results of the callable.
Description
This is preferable over getOrElse if the computation of the default value is expensive.
Parameters
- $callable
-
(Required)
Return
(mixed)
Source
File: vendor/phpoption/phpoption/src/PhpOption/Option.php
abstract public function getOrCall($callable);