/** * @throws \InvalidArgumentException * * @return Amount */ private function amount() : Amount { return (new Amount())->setCurrency(self::DEFAULT_CURRENCY)->setTotal($this->basket->totalPrice()->asFloat())->setDetails($this->details()); }
/** * @throws \InvalidArgumentException * * @return string */ public function totalPrice() : string { return $this->wrappedObject->totalPrice()->formatted(); }