Exemplo n.º 1
0
 /**
  * SrvRecord constructor.
  *
  * @param Node   $node
  * @param int    $ttl
  * @param int    $priority
  * @param int    $weight
  * @param int    $port
  * @param string $target
  */
 public function __construct(Node $node, int $ttl, int $priority, int $weight, int $port, string $target)
 {
     $this->priority = $priority;
     $this->weight = $weight;
     $this->port = $port;
     $this->target = $target;
     parent::__construct($node, eRecordType::SRV(), $ttl);
 }
Exemplo n.º 2
0
 /**
  * SoaRecord constructor.
  *
  * @param Node   $node
  * @param int    $ttl
  * @param string $mName
  * @param string $rName
  * @param int    $serial
  * @param int    $refresh
  * @param int    $retry
  * @param int    $expire
  * @param int    $minimum
  */
 public function __construct(Node $node, int $ttl, string $mName, string $rName, int $serial, int $refresh, int $retry, int $expire, int $minimum)
 {
     $this->mName = $mName;
     $this->rName = $rName;
     $this->serial = $serial;
     $this->refresh = $refresh;
     $this->retry = $retry;
     $this->expire = $expire;
     $this->minimum = $minimum;
     parent::__construct($node, eRecordType::SOA(), $ttl);
 }
 /**
  * CnameRecord constructor.
  *
  * @param Node   $node
  * @param int    $ttl
  * @param string $cname
  */
 public function __construct(Node $node, $ttl, string $cname)
 {
     $this->cname = $cname;
     parent::__construct($node, eRecordType::CNAME(), $ttl);
 }
 /**
  * ARecord constructor.
  *
  * @param Node   $node
  * @param int    $ttl
  * @param string $address
  */
 public function __construct(Node $node, $ttl, string $address)
 {
     $this->address = $address;
     parent::__construct($node, eRecordType::AAAA(), $ttl);
 }
Exemplo n.º 5
0
 /**
  * PtrRecord constructor.
  *
  * @param Node   $node
  * @param int    $ttl
  * @param string $ptrDName
  */
 public function __construct(Node $node, int $ttl, string $ptrDName)
 {
     $this->ptrDName = $ptrDName;
     parent::__construct($node, eRecordType::PTR(), $ttl);
 }
Exemplo n.º 6
0
 /**
  * NsRecord constructor.
  *
  * @param Node   $node
  * @param int    $ttl
  * @param string $nsdName
  */
 public function __construct(Node $node, $ttl, string $nsdName)
 {
     $this->nsdName = $nsdName;
     parent::__construct($node, eRecordType::NS(), $ttl);
 }
Exemplo n.º 7
0
 /**
  * MxRecord constructor.
  *
  * @param Node   $node
  * @param int    $ttl
  * @param int    $preference
  * @param string $exchange
  */
 public function __construct(Node $node, $ttl, int $preference, string $exchange)
 {
     $this->preference = $preference;
     $this->exchange = $exchange;
     parent::__construct($node, eRecordType::MX(), $ttl);
 }