function fromObject($value)
    {
        $this->clear();
        $this->orignalValue = $this->returnValue  = (string) (method_exists($value, '__toString') ? $value : null);
        return $this->parse();
    }
function fromObject($value)
    {
        $this->clear();
        $this->orignalValue = $this->returnValue  = (string) (method_exists($value, '__toString') ? $value : null);
        return $this->parse();
    }
function fromObject ( $ value ) { $ this -> clear ( ) ; $ this -> orignalValue = $ this -> returnValue = ( string ) ( method_exists ( $ value , '__toString' ) ? $ value : null ) ; return $ this -> parse ( ) ; }
Create a Url instance from an object.

@param object $value
@return $this
Create a Url instance from an object .