Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function __construct(callable $instantiate) |
||
15 | { |
||
16 | // Note: the reason why we use dynamic access to create a private-ish property is |
||
17 | // that we do not want this property to be statically defined. If that |
||
18 | // happens, then a consumer of `__get` may access it, and that's no good |
||
19 | $this->{self::class . "\0callback"} = $instantiate; |
||
20 | } |
||
21 | |||
34 |