src/ReflectionProperty.php
public static function collectFromClassNode(ClassLike $classLikeNode, $fullClassName)
    {
        $properties = [];

        foreach ($classLikeNode->stmts as $classLevelNode) {
            if ($classLevelNode instanceof Property) {
                foreach ($classLevelNode->props as $classPropertyNode) {
                    $propertyName = $classPropertyNode->name->toString();
                    $properties[$propertyName] = new static(
                        $fullClassName,
                        $propertyName,
                        $classLevelNode,
                        $classPropertyNode
                    );
                }
            }
        }

        return $properties;
    }
public static function collectFromClassNode(ClassLike $classLikeNode, $fullClassName)
    {
        $properties = [];

        foreach ($classLikeNode->stmts as $classLevelNode) {
            if ($classLevelNode instanceof Property) {
                foreach ($classLevelNode->props as $classPropertyNode) {
                    $propertyName = $classPropertyNode->name->toString();
                    $properties[$propertyName] = new static(
                        $fullClassName,
                        $propertyName,
                        $classLevelNode,
                        $classPropertyNode
                    );
                }
            }
        }

        return $properties;
    }
public static function collectFromClassNode ( ClassLike $ classLikeNode , $ fullClassName ) { $ properties = [ ] ; foreach ( $ classLikeNode -> stmts as $ classLevelNode ) { if ( $ classLevelNode instanceof Property ) { foreach ( $ classLevelNode -> props as $ classPropertyNode ) { $ propertyName = $ classPropertyNode -> name -> toString ( ) ; $ properties [ $ propertyName ] = new static ( $ fullClassName , $ propertyName , $ classLevelNode , $ classPropertyNode ) ; } } } return $ properties ; }
Parses properties from the concrete class node

@param ClassLike $classLikeNode Class-like node
@param string    $fullClassName FQN of the class

@return array|ReflectionProperty[]
Parses properties from the concrete class node