src/Transport.php
public function setAddress($address)
    {
        if (!is_string($address)) {
            throw new \InvalidArgumentException();
        }

        if ($this->address !== null) {
            throw new \RuntimeException();
        }

        $this->address = $address;
        return $this;
    }
public function setAddress($address)
    {
        if (!is_string($address)) {
            throw new \InvalidArgumentException();
        }

        if ($this->address !== null) {
            throw new \RuntimeException();
        }

        $this->address = $address;
        return $this;
    }
public function setAddress ( $ address ) { if ( ! is_string ( $ address ) ) { throw new \ InvalidArgumentException ( ) ; } if ( $ this -> address !== null ) { throw new \ RuntimeException ( ) ; } $ this -> address = $ address ; return $ this ; }
Set the IP address of the client associated
with this transport layer.

\param string $address
IP address of the client.

\retval Transport
Returns this transport layer.

\note
This method is intended for use with
hostbased authentication methods.
Moreover, this method may only be called
once. Subsequent calls will result in a
RuntimeException being raised.
Set the IP address of the client associated with this transport layer .