/** * Retrieves a specific volume entry. * * @param string|null $volumeId The volumeId of interest. * @param \ZendGData\Query|string|null $location (optional) The URL to * query or a ZendGData\Query object from which a URL can be * determined. * @return \ZendGData\Books\VolumeEntry The feed of volumes found at the * specified URL. */ public function getVolumeEntry($volumeId = null, $location = null) { if ($volumeId !== null) { $uri = self::VOLUME_FEED_URI . "/" . $volumeId; } elseif ($location instanceof Query) { $uri = $location->getQueryUrl(); } else { $uri = $location; } return parent::getEntry($uri, 'ZendGData\\Books\\VolumeEntry'); }
public function testSetAndGetStartIndex() { $query = new Query(); $query->setStartIndex(12); $this->assertEquals(12, $query->getStartIndex()); $this->assertContains('start-index=12', $query->getQueryUrl()); }