\FubberLazyProp

Lazy properties trait. Whenever a class uses this trait, properties can be added by calling $instance->lazy('propertyName', function() { return 2*2; });

Summary

Methods
Properties
Constants
lazy()
__get()
No public properties found
No constants found
No protected methods found
$_lazyProps
N/A
No private methods found
No private properties found
N/A

Properties

$_lazyProps

$_lazyProps : 

Type

Methods

lazy()

lazy(string  $name, callable  $callback) : $this

Add a lazily evaluated property

Parameters

string $name
callable $callback

Returns

$this

__get()

__get(  $name) 

Parameters

$name