public function user($user, $pass = null)
    {
        if ($pass)
        {
            $this->pass = $pass;
        }

        $this->user = $user;

        return $this;
    }
public function user($user, $pass = null)
    {
        if ($pass)
        {
            $this->pass = $pass;
        }

        $this->user = $user;

        return $this;
    }
public function user ( $ user , $ pass = null ) { if ( $ pass ) { $ this -> pass = $ pass ; } $ this -> user = $ user ; return $ this ; }
Sets the user component.

@param  string $user
@return self
Sets the user component .