@@ -11,17 +11,18 @@ final class FieldRuntimeMeta extends NodeRuntimeMeta
1111{
1212
1313 /** @var RuleRuntimeMeta<Args> */
14- private RuleRuntimeMeta $ rule ;
14+ public RuleRuntimeMeta $ rule ;
1515
16- private DefaultValueMeta $ default ;
16+ public DefaultValueMeta $ default ;
1717
18- private ReflectionProperty $ property ;
18+ public ReflectionProperty $ property ;
1919
2020 /** @var array<class-string<Modifier<Args>>, ModifierRuntimeMeta<Args>> */
21- private array $ modifiers ;
21+ public array $ modifiers ;
2222
2323 /**
24- * @param array<class-string<Modifier<Args>>, ModifierRuntimeMeta<Args>> $modifiers
24+ * @template T_ARGS of Args
25+ * @param array<class-string<Modifier<T_ARGS>>, ModifierRuntimeMeta<T_ARGS>> $modifiers
2526 * @param RuleRuntimeMeta<Args> $rule
2627 */
2728 public function __construct (
@@ -40,40 +41,14 @@ public function __construct(
4041 $ this ->modifiers = $ modifiers ;
4142 }
4243
43- /**
44- * @return RuleRuntimeMeta<Args>
45- */
46- public function getRule (): RuleRuntimeMeta
47- {
48- return $ this ->rule ;
49- }
50-
51- public function getDefault (): DefaultValueMeta
52- {
53- return $ this ->default ;
54- }
55-
56- public function getProperty (): ReflectionProperty
57- {
58- return $ this ->property ;
59- }
60-
61- /**
62- * @return array<class-string<Modifier<Args>>, ModifierRuntimeMeta<Args>>
63- */
64- public function getModifiers (): array
65- {
66- return $ this ->modifiers ;
67- }
68-
6944 /**
7045 * @template T of Args
7146 * @param class-string<Modifier<T>> $type
7247 * @return ModifierRuntimeMeta<T>|null
7348 */
7449 public function getModifier (string $ type ): ?ModifierRuntimeMeta
7550 {
76- return $ this ->getModifiers () [$ type ] ?? null ;
51+ return $ this ->modifiers [$ type ] ?? null ;
7752 }
7853
7954 /**
0 commit comments