Required
in package
FinalYes
A required dependency.
This attribute indicates that a property holds a required dependency. The annotated property or method should be considered during the instantiation process of the containing class.
Tags
Attributes
- #[Attribute]
- \Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY
Table of Contents
Properties
- $priority : int
Methods
- __construct() : mixed
Properties
$priority
public
int
$priority
= 0
Methods
__construct()
public
__construct([int $priority = 0 ]) : mixed
Parameters
- $priority : int = 0
-
The priority of the method call when the class declares several required methods; the higher the sooner it's called