for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Thruster\Component\Dns;
/**
* Class Record
*
* @package Thruster\Component\Dns
* @author Aurimas Niekis <[email protected]>
*/
class Record
{
* @var string
private $name;
* @var int
private $type;
private $class;
private $ttl;
* @var mixed
private $data;
public function __construct(string $name, int $type, int $class, int $ttl = 0, $data = null)
$this->name = $name;
$this->type = $type;
$this->class = $class;
$this->ttl = $ttl;
$this->data = $data;
}
* @return string
public function getName()
return $this->name;
* @return int
public function getType()
return $this->type;
public function getClass()
return $this->class;
public function getTtl()
return $this->ttl;
* @return mixed
public function getData()
return $this->data;