Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CategoryLink.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Catalog\Model;
8 
14 {
18  const KEY_POSITION = 'position';
19  const KEY_CATEGORY_ID = 'category_id';
25  public function getPosition()
26  {
27  return $this->_get(self::KEY_POSITION);
28  }
29 
33  public function getCategoryId()
34  {
35  return $this->_get(self::KEY_CATEGORY_ID);
36  }
37 
42  public function setPosition($position)
43  {
44  return $this->setData(self::KEY_POSITION, $position);
45  }
46 
53  public function setCategoryId($categoryId)
54  {
55  return $this->setData(self::KEY_CATEGORY_ID, $categoryId);
56  }
57 
63  public function getExtensionAttributes()
64  {
65  return $this->_getExtensionAttributes();
66  }
67 
74  public function setExtensionAttributes(
75  \Magento\Catalog\Api\Data\CategoryLinkExtensionInterface $extensionAttributes
76  ) {
77  return $this->_setExtensionAttributes($extensionAttributes);
78  }
79 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$extensionAttributes
Definition: payment.php:22