# Class PtrRecord

PTR records are used for reverse DNS

The PtrRecord object is nearly identical with the Record object. However, the PtrRecord is a child of the service, and not a child of a Domain.

  OpenCloud\Common\Base
  OpenCloud\Common\Resource\BaseResource
  OpenCloud\Common\Resource\PersistentResource
  OpenCloud\DNS\Resource\AbstractResource
  OpenCloud\DNS\Resource\Record
  OpenCloud\DNS\Resource\PtrRecord

Namespace: OpenCloud\DNS\Resource
Located at OpenCloud/DNS/Resource/PtrRecord.php

Methods summary
`public` | # `__construct( ServiceInterface $service, mixed $info = null )` #### Parameters $service `ServiceInterface` $service The service that this resource belongs to $info `mixed` $data $data #### Overrides `OpenCloud\Common\Resource\BaseResource::__construct()`
`protected` | # `populateRecord( array $params = array() )` Used to internally populate this object with the appropriate type checks Used to internally populate this object with the appropriate type checks #### Parameters $params `array` $params #### Throws ``InvalidArgumentException`` If no parent device set
`public` | # `setDeviceParent( `OpenCloud\DNS\Resource\HasPtrRecordsInterface` $parent )` Set the parent device Set the parent device #### Parameters $parent ``OpenCloud\DNS\Resource\HasPtrRecordsInterface`` $parent
`public `OpenCloud\DNS\Resource\HasPtrRecordsInterface`` | # `getDeviceParent( )` #### Returns ``OpenCloud\DNS\Resource\HasPtrRecordsInterface``
`public Guzzle\Http\Message\Response` | # `create( array $params = array() )` Create a new resource Create a new resource #### Parameters $params `array` $params #### Returns `Guzzle\Http\Message\Response` #### Overrides `OpenCloud\DNS\Resource\AbstractResource::create()`
`public Guzzle\Http\Message\Response` | # `update( array $params = array() )` Update a resource Update a resource #### Parameters $params `array` $params #### Returns `Guzzle\Http\Message\Response` #### Overrides `OpenCloud\DNS\Resource\AbstractResource::update()`
`public Guzzle\Http\Message\Response` | # `delete( )` Delete this resource Delete this resource #### Returns `Guzzle\Http\Message\Response` #### Overrides `OpenCloud\DNS\Resource\AbstractResource::delete()`
`protected object` | # `createJson( )` Provides JSON for create request body Provides JSON for create request body #### Returns `object` #### Throws ``RuntimeException`` #### Overrides `OpenCloud\DNS\Resource\AbstractResource::createJson()`
`protected` | # `updateJson( mixed $params = array() )` Provides JSON for update request body Provides JSON for update request body #### Overrides `OpenCloud\DNS\Resource\AbstractResource::updateJson()`

Methods inherited from OpenCloud\DNS\Resource\AbstractResource
`getCreateKeys(), getUpdateKeys()`

Methods inherited from OpenCloud\Common\Resource\PersistentResource
`checkExtension(), getAlias(), noCreate(), noDelete(), noUpdate(), refresh(), refreshFromLocationUrl(), waitFor()`

Methods inherited from OpenCloud\Common\Resource\BaseResource
`findLink(), getClient(), getMetadata(), getParent(), getService(), getUrl(), jsonCollectionElement(), jsonCollectionName(), jsonName(), parseResponse(), primaryKeyField(), resourceName(), setMetadata(), setParent(), setService()`

Methods inherited from OpenCloud\Common\Base
`__call(), checkJsonError(), generateUuid(), getInstance(), getJsonHeader(), getLogger(), getProperty(), makeResourceIteratorOptions(), populate(), propertyExists(), setLogger(), setProperty(), stripNamespace(), toCamel(), toUnderscores()`

Properties summary
`public `OpenCloud\DNS\Resource\HasPtrRecordsInterface`` | $server | `` | # The device which this record refers to The device which this record refers to
`protected static boolean` | $json_name | `false` | #
`protected static string` | $json_collection_name | `'records'` | #
`protected static string` | $url_resource | `'rdns'` | #

Properties inherited from OpenCloud\DNS\Resource\Record
`$comment, $createKeys, $created, $data, $id, $name, $parent, $priority, $ttl, $type, $updateKeys, $updated`

Properties inherited from OpenCloud\Common\Resource\BaseResource
`$metadata, $service`

Properties inherited from OpenCloud\Common\Base
`$aliases`