vendor/shopware/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.     /**
  33.      * @internal
  34.      */
  35.     public function __construct(
  36.         Tree $navigation,
  37.         LanguageCollection $languages,
  38.         CurrencyCollection $currencies,
  39.         LanguageEntity $activeLanguage,
  40.         CurrencyEntity $activeCurrency,
  41.         CategoryCollection $serviceMenu
  42.     ) {
  43.         $this->languages $languages;
  44.         $this->currencies $currencies;
  45.         $this->activeLanguage $activeLanguage;
  46.         $this->activeCurrency $activeCurrency;
  47.         $this->serviceMenu $serviceMenu;
  48.         parent::__construct($navigation);
  49.     }
  50.     public function getLanguages(): LanguageCollection
  51.     {
  52.         return $this->languages;
  53.     }
  54.     public function getCurrencies(): CurrencyCollection
  55.     {
  56.         return $this->currencies;
  57.     }
  58.     public function getActiveLanguage(): LanguageEntity
  59.     {
  60.         return $this->activeLanguage;
  61.     }
  62.     public function getActiveCurrency(): CurrencyEntity
  63.     {
  64.         return $this->activeCurrency;
  65.     }
  66.     public function getServiceMenu(): CategoryCollection
  67.     {
  68.         return $this->serviceMenu;
  69.     }
  70. }