Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | #[Immutable] |
||
21 | #[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)] |
||
22 | final class AsTagged |
||
23 | { |
||
24 | public function __construct( |
||
25 | public readonly string $name, |
||
26 | public readonly ?string $id = null, |
||
27 | public readonly ?string $alias = null, |
||
28 | public readonly ?string $key = null, |
||
29 | public readonly ?int $priority = null, |
||
30 | public readonly array $attributes = [], |
||
31 | ) {} |
||
32 | |||
33 | public static function getNameProperty(): string |
||
36 | } |
||
37 | } |
||
38 |