88namespace Spryker \Zed \ProductAttributeGui \Dependency \Facade ;
99
1010use Generated \Shared \Transfer \LocaleTransfer ;
11+ use Generated \Shared \Transfer \LocalizedProductManagementAttributeKeyTransfer ;
1112use Generated \Shared \Transfer \ProductManagementAttributeTransfer ;
1213
1314class ProductAttributeGuiToProductAttributeBridge implements ProductAttributeGuiToProductAttributeInterface
@@ -30,7 +31,7 @@ public function __construct($productAttributeFacade)
3031 *
3132 * @return array
3233 */
33- public function getProductAbstractAttributes ($ idProductAbstract )
34+ public function getProductAbstractAttributes ($ idProductAbstract ): array
3435 {
3536 return $ this ->productAttributeFacade ->getProductAbstractAttributeValues ($ idProductAbstract );
3637 }
@@ -40,7 +41,7 @@ public function getProductAbstractAttributes($idProductAbstract)
4041 *
4142 * @return array
4243 */
43- public function getProductAttributeValues ($ idProduct )
44+ public function getProductAttributeValues ($ idProduct ): array
4445 {
4546 return $ this ->productAttributeFacade ->getProductAttributeValues ($ idProduct );
4647 }
@@ -50,7 +51,7 @@ public function getProductAttributeValues($idProduct)
5051 *
5152 * @return array
5253 */
53- public function getMetaAttributesForProductAbstract ($ idProductAbstract )
54+ public function getMetaAttributesForProductAbstract ($ idProductAbstract ): array
5455 {
5556 return $ this ->productAttributeFacade ->getMetaAttributesForProductAbstract ($ idProductAbstract );
5657 }
@@ -60,7 +61,7 @@ public function getMetaAttributesForProductAbstract($idProductAbstract)
6061 *
6162 * @return array
6263 */
63- public function getMetaAttributesForProduct ($ idProduct )
64+ public function getMetaAttributesForProduct ($ idProduct ): array
6465 {
6566 return $ this ->productAttributeFacade ->getMetaAttributesForProduct ($ idProduct );
6667 }
@@ -71,7 +72,7 @@ public function getMetaAttributesForProduct($idProduct)
7172 *
7273 * @return array
7374 */
74- public function suggestKeys ($ searchText = '' , $ limit = 10 )
75+ public function suggestKeys ($ searchText = '' , $ limit = 10 ): array
7576 {
7677 return $ this ->productAttributeFacade ->suggestKeys ($ searchText , $ limit );
7778 }
@@ -82,7 +83,7 @@ public function suggestKeys($searchText = '', $limit = 10)
8283 *
8384 * @return void
8485 */
85- public function saveAbstractAttributes ($ idProductAbstract , array $ attributes )
86+ public function saveAbstractAttributes ($ idProductAbstract , array $ attributes ): void
8687 {
8788 $ this ->productAttributeFacade ->saveAbstractAttributes ($ idProductAbstract , $ attributes );
8889 }
@@ -93,7 +94,7 @@ public function saveAbstractAttributes($idProductAbstract, array $attributes)
9394 *
9495 * @return void
9596 */
96- public function saveConcreteAttributes ($ idProduct , array $ attributes )
97+ public function saveConcreteAttributes ($ idProduct , array $ attributes ): void
9798 {
9899 $ this ->productAttributeFacade ->saveConcreteAttributes ($ idProduct , $ attributes );
99100 }
@@ -103,7 +104,7 @@ public function saveConcreteAttributes($idProduct, array $attributes)
103104 *
104105 * @return array
105106 */
106- public function extractKeysFromAttributes (array $ attributes )
107+ public function extractKeysFromAttributes (array $ attributes ): array
107108 {
108109 return $ this ->productAttributeFacade ->extractKeysFromAttributes ($ attributes );
109110 }
@@ -113,7 +114,7 @@ public function extractKeysFromAttributes(array $attributes)
113114 *
114115 * @return array
115116 */
116- public function extractValuesFromAttributes (array $ attributes )
117+ public function extractValuesFromAttributes (array $ attributes ): array
117118 {
118119 return $ this ->productAttributeFacade ->extractValuesFromAttributes ($ attributes );
119120 }
@@ -125,7 +126,7 @@ public function extractValuesFromAttributes(array $attributes)
125126 *
126127 * @return int
127128 */
128- public function getAttributeValueSuggestionsCount ($ idProductManagementAttribute , $ idLocale , $ searchText = '' )
129+ public function getAttributeValueSuggestionsCount ($ idProductManagementAttribute , $ idLocale , $ searchText = '' ): int
129130 {
130131 return $ this ->productAttributeFacade ->getAttributeValueSuggestionsCount ($ idProductManagementAttribute , $ idLocale , $ searchText );
131132 }
@@ -145,7 +146,7 @@ public function getAttributeValueSuggestions(
145146 $ searchText = '' ,
146147 $ offset = 0 ,
147148 $ limit = 10
148- ) {
149+ ): array {
149150 return $ this ->productAttributeFacade ->getAttributeValueSuggestions (
150151 $ idProductManagementAttribute ,
151152 $ idLocale ,
@@ -160,15 +161,15 @@ public function getAttributeValueSuggestions(
160161 *
161162 * @return \Generated\Shared\Transfer\ProductManagementAttributeTransfer|null
162163 */
163- public function getProductManagementAttribute ($ idProductManagementAttribute )
164+ public function getProductManagementAttribute ($ idProductManagementAttribute ): ? ProductManagementAttributeTransfer
164165 {
165166 return $ this ->productAttributeFacade ->getProductManagementAttribute ($ idProductManagementAttribute );
166167 }
167168
168169 /**
169170 * @return array
170171 */
171- public function getAttributeAvailableTypes ()
172+ public function getAttributeAvailableTypes (): array
172173 {
173174 return $ this ->productAttributeFacade ->getAttributeAvailableTypes ();
174175 }
@@ -178,7 +179,7 @@ public function getAttributeAvailableTypes()
178179 *
179180 * @return \Generated\Shared\Transfer\ProductManagementAttributeTransfer
180181 */
181- public function createProductManagementAttribute (ProductManagementAttributeTransfer $ productManagementAttributeTransfer )
182+ public function createProductManagementAttribute (ProductManagementAttributeTransfer $ productManagementAttributeTransfer ): ProductManagementAttributeTransfer
182183 {
183184 return $ this ->productAttributeFacade ->createProductManagementAttribute ($ productManagementAttributeTransfer );
184185 }
@@ -189,7 +190,7 @@ public function createProductManagementAttribute(ProductManagementAttributeTrans
189190 *
190191 * @return \Generated\Shared\Transfer\LocalizedProductManagementAttributeKeyTransfer|null
191192 */
192- public function findAttributeTranslationByKey ($ attributeKey , LocaleTransfer $ localeTransfer )
193+ public function findAttributeTranslationByKey ($ attributeKey , LocaleTransfer $ localeTransfer ): ? LocalizedProductManagementAttributeKeyTransfer
193194 {
194195 return $ this ->productAttributeFacade ->findAttributeTranslationByKey ($ attributeKey , $ localeTransfer );
195196 }
@@ -201,7 +202,7 @@ public function findAttributeTranslationByKey($attributeKey, LocaleTransfer $loc
201202 */
202203 public function translateProductManagementAttribute (
203204 ProductManagementAttributeTransfer $ productManagementAttributeTransfer
204- ) {
205+ ): void {
205206 $ this ->productAttributeFacade ->translateProductManagementAttribute ($ productManagementAttributeTransfer );
206207 }
207208
@@ -211,7 +212,7 @@ public function translateProductManagementAttribute(
211212 *
212213 * @return array
213214 */
214- public function suggestUnusedAttributeKeys ($ searchText = '' , $ limit = 10 )
215+ public function suggestUnusedAttributeKeys ($ searchText = '' , $ limit = 10 ): array
215216 {
216217 return $ this ->productAttributeFacade ->suggestUnusedAttributeKeys ($ searchText , $ limit );
217218 }
@@ -223,7 +224,7 @@ public function suggestUnusedAttributeKeys($searchText = '', $limit = 10)
223224 */
224225 public function updateProductManagementAttribute (
225226 ProductManagementAttributeTransfer $ productManagementAttributeTransfer
226- ) {
227+ ): ProductManagementAttributeTransfer {
227228 return $ this ->productAttributeFacade ->updateProductManagementAttribute ($ productManagementAttributeTransfer );
228229 }
229230}
0 commit comments