* @author Matthieu Napoli */ final class Injectable { /** * Should the object be lazy-loaded. * @var bool|null */ private $lazy; public function __construct(array $values) { if (isset($values['lazy'])) { $this->lazy = (bool) $values['lazy']; } } /** * @return bool|null */ public function isLazy() { return $this->lazy; } }