protected function createResponseParts($responseParts) {
    if ($responseParts === null) {
      return array();
    }
    $responses = array();
    foreach ($responseParts as $responsePart) {
      $responses[] = new Response($responsePart);
    }
    return $responses;
  }
protected function createResponseParts($responseParts) {
    if ($responseParts === null) {
      return array();
    }
    $responses = array();
    foreach ($responseParts as $responsePart) {
      $responses[] = new Response($responsePart);
    }
    return $responses;
  }
protected function createResponseParts ( $ responseParts ) { if ( $ responseParts === null ) { return array ( ) ; } $ responses = array ( ) ; foreach ( $ responseParts as $ responsePart ) { $ responses [ ] = new Response ( $ responsePart ) ; } return $ responses ; }
Creates an array of Response objects from a given response array
@param $responseParts
@return array
Creates an array of Response objects from a given response array