public function addAnswer(string $host, int $type, int $class, string $data, int $ttl): void
    {
        $this->answers[] = [
            'host' => $host,
            'type' => $type,
            'class' => $class,
            'data' => $data,
            'ttl' => $ttl
        ];
    }
public function addAnswer(string $host, int $type, int $class, string $data, int $ttl): void
    {
        $this->answers[] = [
            'host' => $host,
            'type' => $type,
            'class' => $class,
            'data' => $data,
            'ttl' => $ttl
        ];
    }
public function addAnswer ( string $ host , int $ type , int $ class , string $ data , int $ ttl ) : void { $ this -> answers [ ] = [ 'host' => $ host , 'type' => $ type , 'class' => $ class , 'data' => $ data , 'ttl' => $ ttl ] ; }
Add an answer record to the message.

@param string $host The queried host name.
@param int $type Answer type (A / AAAA / MX / ...).
@param int $class Record class (only internet supported).
@param string $data Unencoded answer data.
@param int $ttl Time to live of the answer record (in seconds).
Add an answer record to the message .