Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class LazyEvaluation |
||
6 | { |
||
7 | /** |
||
8 | * @var callable |
||
9 | */ |
||
10 | protected $callable; |
||
11 | |||
12 | /** |
||
13 | * Create a new lazy evaluation instance. |
||
14 | * |
||
15 | * @param callable $callable |
||
16 | * @return void |
||
17 | */ |
||
18 | public function __construct(callable $callable) |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Return the callable. |
||
25 | * |
||
26 | * @return callable |
||
27 | */ |
||
28 | public function __invoke() |
||
33 |