3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
6
7
7
8
namespace Magento \Catalog \Model ;
8
9
10
+ use Magento \Catalog \Api \Data \CategoryLinkExtensionInterface ;
11
+ use Magento \Catalog \Api \Data \CategoryLinkInterface ;
12
+ use Magento \Framework \Model \AbstractExtensibleModel ;
13
+
9
14
/**
10
15
* @codeCoverageIgnore
11
16
*/
12
- class CategoryLink extends \Magento \Framework \Api \AbstractExtensibleObject implements
13
- \Magento \Catalog \Api \Data \CategoryLinkInterface
17
+ class CategoryLink extends AbstractExtensibleModel implements CategoryLinkInterface
14
18
{
15
- /**#@+
16
- * Constants
17
- */
18
- const KEY_POSITION = 'position ' ;
19
- const KEY_CATEGORY_ID = 'category_id ' ;
20
- /**#@-*/
19
+ public const KEY_POSITION = 'position ' ;
20
+ public const KEY_CATEGORY_ID = 'category_id ' ;
21
21
22
22
/**
23
- * { @inheritdoc}
23
+ * @inheritdoc
24
24
*/
25
25
public function getPosition ()
26
26
{
27
27
return $ this ->_get (self ::KEY_POSITION );
28
28
}
29
29
30
30
/**
31
- * { @inheritdoc}
31
+ * @inheritdoc
32
32
*/
33
33
public function getCategoryId ()
34
34
{
@@ -56,7 +56,7 @@ public function setCategoryId($categoryId)
56
56
}
57
57
58
58
/**
59
- * { @inheritdoc}
59
+ * @inheritdoc
60
60
*
61
61
* @return \Magento\Catalog\Api\Data\CategoryLinkExtensionInterface|null
62
62
*/
@@ -66,14 +66,13 @@ public function getExtensionAttributes()
66
66
}
67
67
68
68
/**
69
- * { @inheritdoc}
69
+ * @inheritdoc
70
70
*
71
71
* @param \Magento\Catalog\Api\Data\CategoryLinkExtensionInterface $extensionAttributes
72
72
* @return $this
73
73
*/
74
- public function setExtensionAttributes (
75
- \Magento \Catalog \Api \Data \CategoryLinkExtensionInterface $ extensionAttributes
76
- ) {
74
+ public function setExtensionAttributes (CategoryLinkExtensionInterface $ extensionAttributes )
75
+ {
77
76
return $ this ->_setExtensionAttributes ($ extensionAttributes );
78
77
}
79
78
}
0 commit comments