public static function makeFromResponse($entityName, $content)
    {
        $content = $content;
        $output = array();
        if (is_array($content)) {
            foreach ($content as $entityData) {
                $output[] = self::makeFromResponse($entityName, $entityData);
            }
        } elseif (is_object($content)) {
            $output = self::mapDataToEntity($entityName, $content);
        } else {
            $output = $content;
        }

        return $output;
    }
public static function makeFromResponse($entityName, $content)
    {
        $content = $content;
        $output = array();
        if (is_array($content)) {
            foreach ($content as $entityData) {
                $output[] = self::makeFromResponse($entityName, $entityData);
            }
        } elseif (is_object($content)) {
            $output = self::mapDataToEntity($entityName, $content);
        } else {
            $output = $content;
        }

        return $output;
    }
public static function makeFromResponse ( $ entityName , $ content ) { $ content = $ content ; $ output = array ( ) ; if ( is_array ( $ content ) ) { foreach ( $ content as $ entityData ) { $ output [ ] = self :: makeFromResponse ( $ entityName , $ entityData ) ; } } elseif ( is_object ( $ content ) ) { $ output = self :: mapDataToEntity ( $ entityName , $ content ) ; } else { $ output = $ content ; } return $ output ; }
Make an array of specified entity from a Response
@param mixed $entityName
@param Response $response
@return Entity[]
Make an array of specified entity from a Response