public function sanitize($price, $format = self::EURO)
    {
        return $this->setPrice($price, $format)->getPrice($format);
    }
public function sanitize($price, $format = self::EURO)
    {
        return $this->setPrice($price, $format)->getPrice($format);
    }
public function sanitize ( $ price , $ format = self :: EURO ) { return $ this -> setPrice ( $ price , $ format ) -> getPrice ( $ format ) ; }
Set price and return sanitized value at once.

@param mixed  $price
@param string $format [optional] the type of $price, default ConvertPrice::EURO.

@return float|int
@throws InvalidArgumentException
Set price and return sanitized value at once .