11<?php
22/**
3- * Copyright 2011 Adobe
4- * All Rights Reserved .
3+ * Copyright © Magento, Inc. All rights reserved.
4+ * See COPYING.txt for license details .
55 */
66namespace Magento \Catalog \Helper ;
77
2121 *
2222 * @SuppressWarnings(PHPMD.TooManyFields)
2323 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
24- * @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
2524 * @since 100.0.2
2625 */
2726class Data extends \Magento \Framework \App \Helper \AbstractHelper
2827{
29- public const PRICE_SCOPE_GLOBAL = 0 ;
28+ const PRICE_SCOPE_GLOBAL = 0 ;
3029
31- public const PRICE_SCOPE_WEBSITE = 1 ;
30+ const PRICE_SCOPE_WEBSITE = 1 ;
3231
33- public const XML_PATH_PRICE_SCOPE = 'catalog/price/scope ' ;
32+ const XML_PATH_PRICE_SCOPE = 'catalog/price/scope ' ;
3433
35- public const CONFIG_USE_STATIC_URLS = 'cms/wysiwyg/use_static_urls_in_catalog ' ;
34+ const CONFIG_USE_STATIC_URLS = 'cms/wysiwyg/use_static_urls_in_catalog ' ;
3635
3736 /**
3837 * @deprecated
3938 * @see \Magento\Catalog\Helper\Output::isDirectivesExists
4039 */
41- public const CONFIG_PARSE_URL_DIRECTIVES = 'catalog/frontend/parse_url_directives ' ;
40+ const CONFIG_PARSE_URL_DIRECTIVES = 'catalog/frontend/parse_url_directives ' ;
4241
43- public const XML_PATH_DISPLAY_PRODUCT_COUNT = 'catalog/layered_navigation/display_product_count ' ;
42+ const XML_PATH_DISPLAY_PRODUCT_COUNT = 'catalog/layered_navigation/display_product_count ' ;
4443
4544 /**
4645 * Cache context
4746 */
48- public const CONTEXT_CATALOG_SORT_DIRECTION = 'catalog_sort_direction ' ;
47+ const CONTEXT_CATALOG_SORT_DIRECTION = 'catalog_sort_direction ' ;
4948
50- public const CONTEXT_CATALOG_SORT_ORDER = 'catalog_sort_order ' ;
49+ const CONTEXT_CATALOG_SORT_ORDER = 'catalog_sort_order ' ;
5150
52- public const CONTEXT_CATALOG_DISPLAY_MODE = 'catalog_mode ' ;
51+ const CONTEXT_CATALOG_DISPLAY_MODE = 'catalog_mode ' ;
5352
54- public const CONTEXT_CATALOG_LIMIT = 'catalog_limit ' ;
53+ const CONTEXT_CATALOG_LIMIT = 'catalog_limit ' ;
5554
5655 /**
5756 * Breadcrumb Path cache
@@ -68,16 +67,22 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
6867 protected $ _storeId ;
6968
7069 /**
70+ * Core registry
71+ *
7172 * @var \Magento\Framework\Registry
7273 */
7374 protected $ _coreRegistry ;
7475
7576 /**
77+ * Catalog product
78+ *
7679 * @var Product
7780 */
7881 protected $ _catalogProduct ;
7982
8083 /**
84+ * Catalog category
85+ *
8186 * @var Category
8287 */
8388 protected $ _catalogCategory ;
@@ -93,36 +98,50 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
9398 protected $ _templateFilterModel ;
9499
95100 /**
101+ * Catalog session
102+ *
96103 * @var \Magento\Catalog\Model\Session
97104 */
98105 protected $ _catalogSession ;
99106
100107 /**
108+ * Store manager
109+ *
101110 * @var \Magento\Store\Model\StoreManagerInterface
102111 */
103112 protected $ _storeManager ;
104113
105114 /**
115+ * Template filter factory
116+ *
106117 * @var \Magento\Catalog\Model\Template\Filter\Factory
107118 */
108119 protected $ _templateFilterFactory ;
109120
110121 /**
122+ * Tax class key factory
123+ *
111124 * @var \Magento\Tax\Api\Data\TaxClassKeyInterfaceFactory
112125 */
113126 protected $ _taxClassKeyFactory ;
114127
115128 /**
129+ * Tax helper
130+ *
116131 * @var \Magento\Tax\Model\Config
117132 */
118133 protected $ _taxConfig ;
119134
120135 /**
136+ * Quote details factory
137+ *
121138 * @var \Magento\Tax\Api\Data\QuoteDetailsInterfaceFactory
122139 */
123140 protected $ _quoteDetailsFactory ;
124141
125142 /**
143+ * Quote details item factory
144+ *
126145 * @var \Magento\Tax\Api\Data\QuoteDetailsItemInterfaceFactory
127146 */
128147 protected $ _quoteDetailsItemFactory ;
@@ -133,11 +152,15 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
133152 protected $ _customerSession ;
134153
135154 /**
155+ * Tax calculation service interface
156+ *
136157 * @var \Magento\Tax\Api\TaxCalculationInterface
137158 */
138159 protected $ _taxCalculationService ;
139160
140161 /**
162+ * Price currency
163+ *
141164 * @var PriceCurrencyInterface
142165 */
143166 protected $ priceCurrency ;
0 commit comments