* @author Matthieu Napoli */ #[Attribute(Attribute::TARGET_CLASS)] class Injectable { /** * @param bool|null $lazy Should the object be lazy-loaded. */ public function __construct( private ?bool $lazy = null, ) { } public function isLazy() : ?bool { return $this->lazy; } }