Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CategoryProductLink.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Catalog\Model;
8 
14 {
18  const KEY_SKU = 'sku';
19  const KEY_POSITION = 'position';
20  const KEY_CATEGORY_ID = 'category_id';
26  public function getSku()
27  {
28  return $this->_get(self::KEY_SKU);
29  }
30 
34  public function getPosition()
35  {
36  return $this->_get(self::KEY_POSITION);
37  }
38 
42  public function getCategoryId()
43  {
44  return $this->_get(self::KEY_CATEGORY_ID);
45  }
46 
51  public function setSku($sku)
52  {
53  return $this->setData(self::KEY_SKU, $sku);
54  }
55 
60  public function setPosition($position)
61  {
62  return $this->setData(self::KEY_POSITION, $position);
63  }
64 
71  public function setCategoryId($categoryId)
72  {
73  return $this->setData(self::KEY_CATEGORY_ID, $categoryId);
74  }
75 
81  public function getExtensionAttributes()
82  {
83  return $this->_getExtensionAttributes();
84  }
85 
92  public function setExtensionAttributes(
93  \Magento\Catalog\Api\Data\CategoryProductLinkExtensionInterface $extensionAttributes
94  ) {
95  return $this->_setExtensionAttributes($extensionAttributes);
96  }
97 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$extensionAttributes
Definition: payment.php:22