vendor/shopware/storefront/Page/Checkout/Cart/CheckoutCartPage.php line 13

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Storefront\Page\Checkout\Cart;
  3. use Shopware\Core\Checkout\Cart\Cart;
  4. use Shopware\Core\Checkout\Payment\PaymentMethodCollection;
  5. use Shopware\Core\Checkout\Shipping\ShippingMethodCollection;
  6. use Shopware\Core\Framework\Log\Package;
  7. use Shopware\Core\System\Country\CountryCollection;
  8. use Shopware\Storefront\Page\Page;
  9. #[Package('storefront')]
  10. class CheckoutCartPage extends Page
  11. {
  12.     /**
  13.      * @var Cart
  14.      */
  15.     protected $cart;
  16.     /**
  17.      * @var CountryCollection
  18.      */
  19.     protected $countries;
  20.     /**
  21.      * @var PaymentMethodCollection
  22.      */
  23.     protected $paymentMethods;
  24.     /**
  25.      * @var ShippingMethodCollection
  26.      */
  27.     protected $shippingMethods;
  28.     public function getCart(): Cart
  29.     {
  30.         return $this->cart;
  31.     }
  32.     public function setCart(Cart $cart): void
  33.     {
  34.         $this->cart $cart;
  35.     }
  36.     public function setCountries(CountryCollection $countries): void
  37.     {
  38.         $this->countries $countries;
  39.     }
  40.     public function getCountries(): CountryCollection
  41.     {
  42.         return $this->countries;
  43.     }
  44.     public function setPaymentMethods(PaymentMethodCollection $paymentMethods): void
  45.     {
  46.         $this->paymentMethods $paymentMethods;
  47.     }
  48.     public function getPaymentMethods(): PaymentMethodCollection
  49.     {
  50.         return $this->paymentMethods;
  51.     }
  52.     public function setShippingMethods(ShippingMethodCollection $shippingMethods): void
  53.     {
  54.         $this->shippingMethods $shippingMethods;
  55.     }
  56.     public function getShippingMethods(): ShippingMethodCollection
  57.     {
  58.         return $this->shippingMethods;
  59.     }
  60. }