public static function extractProperties(\ReflectionClass $reflector, $type = \ReflectionProperty::IS_PROTECTED, $pattern = self::INJECTABLE_PATTERN)
    {
        $properties = [];
        foreach ($reflector->getProperties($type) as $property) {
            $doc = $property->getDocComment();
            if (preg_match($pattern, $doc)) {
                $instanceType = self::extractVarType($property->getDocComment());
                if (null !== $instanceType) {
                    $properties[$property->getName()] = $instanceType;
                }
            }
        }
        return $properties;
    }
public static function extractProperties(\ReflectionClass $reflector, $type = \ReflectionProperty::IS_PROTECTED, $pattern = self::INJECTABLE_PATTERN)
    {
        $properties = [];
        foreach ($reflector->getProperties($type) as $property) {
            $doc = $property->getDocComment();
            if (preg_match($pattern, $doc)) {
                $instanceType = self::extractVarType($property->getDocComment());
                if (null !== $instanceType) {
                    $properties[$property->getName()] = $instanceType;
                }
            }
        }
        return $properties;
    }
public static function extractProperties ( \ ReflectionClass $ reflector , $ type = \ ReflectionProperty :: IS_PROTECTED , $ pattern = self :: INJECTABLE_PATTERN ) { $ properties = [ ] ; foreach ( $ reflector -> getProperties ( $ type ) as $ property ) { $ doc = $ property -> getDocComment ( ) ; if ( preg_match ( $ pattern , $ doc ) ) { $ instanceType = self :: extractVarType ( $ property -> getDocComment ( ) ) ; if ( null !== $ instanceType ) { $ properties [ $ property -> getName ( ) ] = $ instanceType ; } } } return $ properties ; }
Method that extract the properties of a Class
@param \ReflectionClass $reflector
@param integer $type
@param string $pattern
@return array
Method that extract the properties of a Class