public function addQuestion(string $host, int $type, int $class = self::CLASS_IN): void
    {
        $this->questions[] = [
            'host' => $host,
            'type' => $type,
            'class' => $class
        ];
    }
public function addQuestion(string $host, int $type, int $class = self::CLASS_IN): void
    {
        $this->questions[] = [
            'host' => $host,
            'type' => $type,
            'class' => $class
        ];
    }
public function addQuestion ( string $ host , int $ type , int $ class = self :: CLASS_IN ) : void { $ this -> questions [ ] = [ 'host' => $ host , 'type' => $ type , 'class' => $ class ] ; }
Add a question record to the message.

@param string $host The queried host name.
@param int $type Question type (A / AAAA / MX / ...).
@param int $class Record class (only internet supported).
Add a question record to the message .