/** * Retrieve entry as string or object * * @param mixed $location The location as string or \Zend\GData\Query * @throws \Zend\GData\App\InvalidArgumentException * @return string|\Zend\GData\App\Entry Returns string only if the object * mapping has been disabled explicitly * by passing false to the * useObjectMapping() function. */ public function getEntry($location, $className = '\\Zend\\GData\\Entry') { if (is_string($location)) { $uri = $location; } elseif ($location instanceof Query) { $uri = $location->getQueryUrl(); } else { throw new App\InvalidArgumentException('You must specify the location as either a string URI ' . 'or a child of Zend\\GData\\Query'); } return parent::getEntry($uri, $className); }