public function get(int $offset): ?string
    {
        if ($offset < 0) {
            $offset += count($this->labels);
        }

        return $this->labels[$offset] ?? null;
    }
public function get(int $offset): ?string
    {
        if ($offset < 0) {
            $offset += count($this->labels);
        }

        return $this->labels[$offset] ?? null;
    }
public function get ( int $ offset ) : ? string { if ( $ offset < 0 ) { $ offset += count ( $ this -> labels ) ; } return $ this -> labels [ $ offset ] ?? null ; }
Retrieves a single host label.

If the label offset has not been set, returns the null value.
Retrieves a single host label .