/** * returns a Collection of PTR records for a given Server * * @param \OpenCloud\Compute\Resource\Server $server the server for which to * retrieve the PTR records * @return \OpenCloud\Common\Collection */ public function ptrRecordList(Server $server) { $url = $this->getUrl()->addPath('rdns')->addPath($server->getService()->name())->setQuery(array('href' => $server->url())); return $this->collection('OpenCloud\\DNS\\Resource\\PtrRecord', $url); }
/** * returns a Collection of PTR records for a given Server * * @param \OpenCloud\Compute\Server $server the server for which to * retrieve the PTR records * @return Collection */ public function ptrRecordList(Server $server) { $url = $this->url('rdns/' . $server->getService()->name(), array('href' => $server->url())); return $this->collection('OpenCloud\\DNS\\Resource\\PtrRecord', $url); }