for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Internal\Hydration\Cache;
/**
* Concept taken from ocramius/lazy-map
*
* @link https://github.com/Ocramius/LazyMap/blob/1.0.0/src/LazyMap/CallbackLazyMap.php
* @internal do not use: internal class only
*/
final class LazyPropertyMap
{
public function __construct(callable $instantiate)
$this->{__CLASS__ . "\0callback"} = $instantiate;
}
* @param string $name
* @return mixed
public function __get(string $name)
$this->$name = ($this->{__CLASS__ . "\0callback"})($name);
return $this->$name;