public function setPort($port)
    {
        if ( ! is_null($port)) $port = (int) $port;

        $this->setAttribute('port', $port);

        return $this;
    }
public function setPort($port)
    {
        if ( ! is_null($port)) $port = (int) $port;

        $this->setAttribute('port', $port);

        return $this;
    }
public function setPort ( $ port ) { if ( ! is_null ( $ port ) ) $ port = ( int ) $ port ; $ this -> setAttribute ( 'port' , $ port ) ; return $ this ; }
Sets the port number

@param int|null $port
@return $this
Sets the port number