diff --git a/tests/Fixtures/BuyableProduct.php b/tests/Fixtures/BuyableProduct.php index 576a9cb..e2db9f6 100644 --- a/tests/Fixtures/BuyableProduct.php +++ b/tests/Fixtures/BuyableProduct.php @@ -4,6 +4,7 @@ namespace Gloudemans\Tests\Shoppingcart\Fixtures; use Gloudemans\Shoppingcart\Contracts\Buyable; use Illuminate\Database\Eloquent\Model; +use Money\Money; class BuyableProduct extends Model implements Buyable { @@ -50,20 +51,16 @@ class BuyableProduct extends Model implements Buyable /** * Get the price of the Buyable item. - * - * @return float */ - public function getBuyablePrice() + public function getBuyablePrice(): Money { - return $this->price; + return new Money($this->price); } /** * Get the price of the Buyable item. - * - * @return float */ - public function getBuyableWeight() + public function getBuyableWeight(): float { return $this->weight; }