1 | <?php |
||
16 | final class Inject implements InjectInterface |
||
17 | { |
||
18 | /** |
||
19 | * If true, and the appropriate binding is not found, the Injector will skip injection of this method or field rather than produce an error. |
||
20 | * |
||
21 | * @var bool |
||
22 | */ |
||
23 | public $optional = false; |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | public function isOptional(): bool |
||
32 | |||
33 | public function __construct(array $value = [], bool $optional = false) |
||
37 | } |
||
38 |