vendor/shopware/platform/src/Storefront/Pagelet/Header/HeaderPagelet.php line 13

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Storefront\Pagelet\Header;
  3. use Shopware\Core\Content\Category\CategoryCollection;
  4. use Shopware\Core\Content\Category\Tree\Tree;
  5. use Shopware\Core\System\Currency\CurrencyCollection;
  6. use Shopware\Core\System\Currency\CurrencyEntity;
  7. use Shopware\Core\System\Language\LanguageCollection;
  8. use Shopware\Core\System\Language\LanguageEntity;
  9. use Shopware\Storefront\Pagelet\NavigationPagelet;
  10. class HeaderPagelet extends NavigationPagelet
  11. {
  12.     /**
  13.      * @var LanguageCollection
  14.      */
  15.     protected $languages;
  16.     /**
  17.      * @var CurrencyCollection
  18.      */
  19.     protected $currencies;
  20.     /**
  21.      * @var LanguageEntity
  22.      */
  23.     protected $activeLanguage;
  24.     /**
  25.      * @var CurrencyEntity
  26.      */
  27.     protected $activeCurrency;
  28.     /**
  29.      * @var CategoryCollection
  30.      */
  31.     protected $serviceMenu;
  32.     public function __construct(
  33.         Tree $navigation,
  34.         LanguageCollection $languages,
  35.         CurrencyCollection $currencies,
  36.         LanguageEntity $activeLanguage,
  37.         CurrencyEntity $activeCurrency,
  38.         CategoryCollection $serviceMenu
  39.     ) {
  40.         $this->languages $languages;
  41.         $this->currencies $currencies;
  42.         $this->activeLanguage $activeLanguage;
  43.         $this->activeCurrency $activeCurrency;
  44.         $this->serviceMenu $serviceMenu;
  45.         parent::__construct($navigation);
  46.     }
  47.     public function getLanguages(): LanguageCollection
  48.     {
  49.         return $this->languages;
  50.     }
  51.     public function getCurrencies(): CurrencyCollection
  52.     {
  53.         return $this->currencies;
  54.     }
  55.     public function getActiveLanguage(): LanguageEntity
  56.     {
  57.         return $this->activeLanguage;
  58.     }
  59.     public function getActiveCurrency(): CurrencyEntity
  60.     {
  61.         return $this->activeCurrency;
  62.     }
  63.     public function getServiceMenu(): CategoryCollection
  64.     {
  65.         return $this->serviceMenu;
  66.     }
  67. }