File tree 2 files changed +6
-10
lines changed
2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 16
16
#[Attribute(Attribute::TARGET_CLASS )]
17
17
class Aspect extends AbstractAnnotation
18
18
{
19
- public array $ classes = [];
20
-
21
- public array $ annotations = [];
22
-
23
- public ?int $ priority = null ;
19
+ public function __construct (public array $ classes = [], public array $ annotations = [], public ?int $ priority = null )
20
+ {
21
+ }
24
22
25
23
public function collectClass (string $ className ): void
26
24
{
Original file line number Diff line number Diff line change 20
20
#[Attribute(Attribute::TARGET_PROPERTY )]
21
21
class Inject extends AbstractAnnotation
22
22
{
23
- public ?string $ value = null ;
24
-
25
- public bool $ required = true ;
26
-
27
- public bool $ lazy = false ;
23
+ public function __construct (public ?string $ value = null , public bool $ required = true , public bool $ lazy = false )
24
+ {
25
+ }
28
26
29
27
public function collectProperty (string $ className , ?string $ target ): void
30
28
{
You can’t perform that action at this time.
0 commit comments