protected function parseUserInfo()
    {
        // No user information? we're done
        if (null === $this->userInfo) {
            return;
        }

        // If no ':' separator, we only have a username
        if (false === strpos($this->userInfo, ':')) {
            $this->setUser($this->userInfo);

            return;
        }

        // Split on the ':', and set both user and password
        list($user, $password) = explode(':', $this->userInfo, 2);
        $this->setUser($user);
        $this->setPassword($password);
    }
protected function parseUserInfo()
    {
        // No user information? we're done
        if (null === $this->userInfo) {
            return;
        }

        // If no ':' separator, we only have a username
        if (false === strpos($this->userInfo, ':')) {
            $this->setUser($this->userInfo);

            return;
        }

        // Split on the ':', and set both user and password
        list($user, $password) = explode(':', $this->userInfo, 2);
        $this->setUser($user);
        $this->setPassword($password);
    }
protected function parseUserInfo ( ) { // No user information? we're done if ( null === $ this -> userInfo ) { return ; } // If no ':' separator, we only have a username if ( false === strpos ( $ this -> userInfo , ':' ) ) { $ this -> setUser ( $ this -> userInfo ) ; return ; } // Split on the ':', and set both user and password list ( $ user , $ password ) = explode ( ':' , $ this -> userInfo , 2 ) ; $ this -> setUser ( $ user ) ; $ this -> setPassword ( $ password ) ; }
Parse the user info into username and password segments

Parses the user information into username and password segments, and
then sets the appropriate values.

@return void
Parse the user info into username and password segments