Fabiang\Xmpp\Options::setAddress PHP Method

setAddress() public method

When a address is passed this setter also calls setTo with the hostname part of the address.
public setAddress ( string $address )
$address string Server address
    public function setAddress($address)
    {
        $this->address = (string) $address;
        if (false !== ($host = parse_url($address, PHP_URL_HOST))) {
            $this->setTo($host);
        }
        return $this;
    }