public static function getClassProperties($class)
    {
        $properties = [];
        Logger::log('Extracting annotations properties from class ' . $class);
        $selfReflector = new \ReflectionClass($class);
        if (false !== $selfReflector->getParentClass()) {
            $properties = self::getClassProperties($selfReflector->getParentClass()->getName());
        }
        $properties = array_merge($properties, self::extractProperties($selfReflector));
        return $properties;
    }
public static function getClassProperties($class)
    {
        $properties = [];
        Logger::log('Extracting annotations properties from class ' . $class);
        $selfReflector = new \ReflectionClass($class);
        if (false !== $selfReflector->getParentClass()) {
            $properties = self::getClassProperties($selfReflector->getParentClass()->getName());
        }
        $properties = array_merge($properties, self::extractProperties($selfReflector));
        return $properties;
    }
public static function getClassProperties ( $ class ) { $ properties = [ ] ; Logger :: log ( 'Extracting annotations properties from class ' . $ class ) ; $ selfReflector = new \ ReflectionClass ( $ class ) ; if ( false !== $ selfReflector -> getParentClass ( ) ) { $ properties = self :: getClassProperties ( $ selfReflector -> getParentClass ( ) -> getName ( ) ) ; } $ properties = array_merge ( $ properties , self :: extractProperties ( $ selfReflector ) ) ; return $ properties ; }
Method that extract all the properties of a class
@param string $class
@return array
Method that extract all the properties of a class