original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Make an array of specified entity from a Response
  @param mixed $entityName
  @param Response $response
  @return Entity[]
docstring_tokens: Make an array of specified entity from a Response