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

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\System\Country\CountryCollection;
  7. use Shopware\Storefront\Page\Page;
  8. class CheckoutCartPage extends Page
  9. {
  10.     /**
  11.      * @var Cart
  12.      */
  13.     protected $cart;
  14.     /**
  15.      * @var CountryCollection
  16.      */
  17.     protected $countries;
  18.     /**
  19.      * @var PaymentMethodCollection
  20.      */
  21.     protected $paymentMethods;
  22.     /**
  23.      * @var ShippingMethodCollection
  24.      */
  25.     protected $shippingMethods;
  26.     public function getCart(): Cart
  27.     {
  28.         return $this->cart;
  29.     }
  30.     public function setCart(Cart $cart): void
  31.     {
  32.         $this->cart $cart;
  33.     }
  34.     public function setCountries(CountryCollection $countries): void
  35.     {
  36.         $this->countries $countries;
  37.     }
  38.     public function getCountries(): CountryCollection
  39.     {
  40.         return $this->countries;
  41.     }
  42.     public function setPaymentMethods(PaymentMethodCollection $paymentMethods): void
  43.     {
  44.         $this->paymentMethods $paymentMethods;
  45.     }
  46.     public function getPaymentMethods(): PaymentMethodCollection
  47.     {
  48.         return $this->paymentMethods;
  49.     }
  50.     public function setShippingMethods(ShippingMethodCollection $shippingMethods): void
  51.     {
  52.         $this->shippingMethods $shippingMethods;
  53.     }
  54.     public function getShippingMethods(): ShippingMethodCollection
  55.     {
  56.         return $this->shippingMethods;
  57.     }
  58. }