protected function getProperties($targetType)
    {
        $properties = ReflectionService::get()->getClassReflection($targetType)->getProperties();
        $propertiesKeys = array_map(
            function (PropertyReflection $propertyReflection) {
                return $propertyReflection->getName();
            },
            $properties
        );

        return array_combine($propertiesKeys, $properties);
    }
protected function getProperties($targetType)
    {
        $properties = ReflectionService::get()->getClassReflection($targetType)->getProperties();
        $propertiesKeys = array_map(
            function (PropertyReflection $propertyReflection) {
                return $propertyReflection->getName();
            },
            $properties
        );

        return array_combine($propertiesKeys, $properties);
    }
protected function getProperties ( $ targetType ) { $ properties = ReflectionService :: get ( ) -> getClassReflection ( $ targetType ) -> getProperties ( ) ; $ propertiesKeys = array_map ( function ( PropertyReflection $ propertyReflection ) { return $ propertyReflection -> getName ( ) ; } , $ properties ) ; return array_combine ( $ propertiesKeys , $ properties ) ; }
Internal function that fetches the properties of a class.

@param $targetType
@return array
Internal function that fetches the properties of a class .