Injectable
in package
FinalYes
"Injectable" attribute.
Marks a class as injectable
Tags
Attributes
- #[Attribute]
- \Attribute::TARGET_CLASS
Table of Contents
Properties
- $lazy : bool|null
Methods
- __construct() : mixed
- isLazy() : bool|null
Properties
$lazy
private
bool|null
$lazy
= null
Methods
__construct()
public
__construct([bool|null $lazy = null ]) : mixed
Parameters
- $lazy : bool|null = null
-
Should the object be lazy-loaded.
isLazy()
public
isLazy() : bool|null