@@ -40,7 +40,7 @@ public function parse(AnnotatedTargetParserOptions $options) : Generator {
4040 $ data ->targets = [];
4141 $ nodeTraverser ->addVisitor ($ this ->getVisitor (
4242 static fn ($ target ) => $ data ->targets [] = $ target ,
43- $ options ->getAttributeTypes ()
43+ $ options ->attributeTypes ()
4444 ));
4545
4646 foreach ($ this ->getSourceIterator ($ options ) as $ sourceFile ) {
@@ -61,7 +61,7 @@ public function parse(AnnotatedTargetParserOptions $options) : Generator {
6161 }
6262
6363 private function getSourceIterator (AnnotatedTargetParserOptions $ options ) : Iterator {
64- foreach ($ options ->getSourceDirectories () as $ directory ) {
64+ foreach ($ options ->sourceDirectories () as $ directory ) {
6565 $ iterator = new RecursiveIteratorIterator (
6666 new RecursiveDirectoryIterator ($ directory , FilesystemIterator::SKIP_DOTS )
6767 );
@@ -75,7 +75,7 @@ private function getSourceIterator(AnnotatedTargetParserOptions $options) : Iter
7575 }
7676
7777 private function getVisitor (callable $ consumer , array $ filteredAttributes ) : NodeVisitor {
78- $ filteredAttributes = array_map (fn ($ attr ) => $ attr ->getName (), $ filteredAttributes );
78+ $ filteredAttributes = array_map (fn ($ attr ) => $ attr ->name (), $ filteredAttributes );
7979 return new class ($ consumer , $ filteredAttributes ) extends NodeVisitorAbstract {
8080
8181 private $ consumer ;
@@ -182,23 +182,23 @@ public function __construct(
182182 $ this ->reflectorSupplier = $ reflectorSupplier ;
183183 }
184184
185- public function getTargetReflection () : ReflectionClass |ReflectionProperty |ReflectionClassConstant |ReflectionMethod |ReflectionParameter |ReflectionFunction {
185+ public function targetReflection () : ReflectionClass |ReflectionProperty |ReflectionClassConstant |ReflectionMethod |ReflectionParameter |ReflectionFunction {
186186 if (!isset ($ this ->reflection )) {
187187 $ this ->reflection = ($ this ->reflectorSupplier )();
188188 }
189189 return $ this ->reflection ;
190190 }
191191
192- public function getAttributeReflection () : ReflectionAttribute {
192+ public function attributeReflection () : ReflectionAttribute {
193193 if (!isset ($ this ->reflectionAttribute )) {
194- $ this ->reflectionAttribute = $ this ->getTargetReflection ()->getAttributes ()[$ this ->index ];
194+ $ this ->reflectionAttribute = $ this ->targetReflection ()->getAttributes ()[$ this ->index ];
195195 }
196196 return $ this ->reflectionAttribute ;
197197 }
198198
199- public function getAttributeInstance () : object {
199+ public function attributeInstance () : object {
200200 if (!isset ($ this ->attribute )) {
201- $ this ->attribute = $ this ->getAttributeReflection ()->newInstance ();
201+ $ this ->attribute = $ this ->attributeReflection ()->newInstance ();
202202 }
203203 return $ this ->attribute ;
204204 }
0 commit comments