1313 */
1414class FeatureSet
1515{
16- final public const APPLY_HALT = 'halt ' ;
16+ final public const string APPLY_HALT = 'halt ' ;
1717
1818 protected ?AbstractRowGateway $ rowGateway = null ;
1919
2020 /** @var FeatureInterface[] */
2121 protected array $ features = [];
2222
23+ /** @var array<array-key, mixed> */
2324 protected array $ magicSpecifications = [];
2425
26+ /** @param FeatureInterface[] $features */
2527 public function __construct (array $ features = [])
2628 {
2729 if ([] !== $ features ) {
@@ -38,6 +40,7 @@ public function addFeature(FeatureInterface $feature): static
3840 return $ this ;
3941 }
4042
43+ /** @param FeatureInterface[] $features */
4144 public function addFeatures (array $ features ): static
4245 {
4346 foreach ($ features as $ feature ) {
@@ -46,6 +49,12 @@ public function addFeatures(array $features): static
4649 return $ this ;
4750 }
4851
52+ /**
53+ * @param array<array-key, mixed> $args
54+ *
55+ * @mago-expect analysis:string-member-selector
56+ * @mago-expect analysis:mixed-assignment
57+ */
4958 public function apply (string $ method , array $ args ): void
5059 {
5160 foreach ($ this ->features as $ feature ) {
@@ -60,31 +69,51 @@ public function apply(string $method, array $args): void
6069 }
6170 }
6271
72+ /**
73+ * @mago-expect analysis:unused-parameter
74+ *
75+ * @param array<array-key, mixed> $arguments
76+ */
6377 public function callMagicCall (string $ method , array $ arguments ): mixed
6478 {
6579 return null ;
6680 }
6781
82+ /**
83+ * @mago-expect analysis:unused-parameter
84+ */
6885 public function callMagicGet (string $ property ): mixed
6986 {
7087 return null ;
7188 }
7289
90+ /**
91+ * @mago-expect analysis:unused-parameter
92+ */
7393 public function callMagicSet (string $ property , mixed $ value ): mixed
7494 {
7595 return null ;
7696 }
7797
98+ /**
99+ * @mago-expect analysis:unused-parameter
100+ */
78101 public function canCallMagicCall (string $ method ): bool
79102 {
80103 return false ;
81104 }
82105
106+ /**
107+ * @mago-expect analysis:unused-parameter
108+ */
83109 public function canCallMagicGet (string $ property ): false
84110 {
85111 return false ;
86112 }
87113
114+ /**
115+ * @mago-expect analysis:unused-parameter
116+ */
88117 public function canCallMagicSet (string $ property ): false
89118 {
90119 return false ;
0 commit comments