public function to($unit)
    {
        $this->value = $this->convert($this->unit, $unit, $this->value);
        $this->unit = $unit;
        return $this;
    }
public function to($unit)
    {
        $this->value = $this->convert($this->unit, $unit, $this->value);
        $this->unit = $unit;
        return $this;
    }
public function to ( $ unit ) { $ this -> value = $ this -> convert ( $ this -> unit , $ unit , $ this -> value ) ; $ this -> unit = $ unit ; return $ this ; }
Converts this quantity to another unit.
@param string $unit unit to convert to
@return Currency this quantity
Converts this quantity to another unit .