Instantly share code, notes, and snippets.

View LazyLoader.php
<?php
class LazyLoader{
private $providerOrValue;
private $evaluated = false;
public function __construct($providerOrValue) {
$this->providerOrValue = $providerOrValue;
}