123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- <?php
- /**
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Bundle\Api\Data;
- /**
- * Interface LinkInterface
- * @api
- * @since 100.0.2
- */
- interface LinkInterface extends \Magento\Framework\Api\ExtensibleDataInterface
- {
- const PRICE_TYPE_FIXED = 0;
- const PRICE_TYPE_PERCENT = 1;
- /**
- * Get the identifier
- *
- * @return string|null
- */
- public function getId();
- /**
- * Set id
- *
- * @param string $id
- * @return $this
- */
- public function setId($id);
- /**
- * Get linked product sku
- *
- * @return string|null
- */
- public function getSku();
- /**
- * Set linked product sku
- *
- * @param string $sku
- * @return $this
- */
- public function setSku($sku);
- /**
- * Get option id
- *
- * @return int|null
- */
- public function getOptionId();
- /**
- * Set option id
- *
- * @param int $optionId
- * @return $this
- */
- public function setOptionId($optionId);
- /**
- * Get qty
- *
- * @return float|null
- */
- public function getQty();
- /**
- * Set qty
- *
- * @param float $qty
- * @return $this
- */
- public function setQty($qty);
- /**
- * Get position
- *
- * @return int|null
- */
- public function getPosition();
- /**
- * Set position
- *
- * @param int $position
- * @return $this
- */
- public function setPosition($position);
- /**
- * Get is default
- *
- * @return bool
- * @SuppressWarnings(PHPMD.BooleanGetMethodName)
- */
- public function getIsDefault();
- /**
- * Set is default
- *
- * @param bool $isDefault
- * @return $this
- */
- public function setIsDefault($isDefault);
- /**
- * Get price
- *
- * @return float
- */
- public function getPrice();
- /**
- * Set price
- *
- * @param float $price
- * @return $this
- */
- public function setPrice($price);
- /**
- * Get price type
- *
- * @return int
- */
- public function getPriceType();
- /**
- * Set price type
- *
- * @param int $priceType
- * @return $this
- */
- public function setPriceType($priceType);
- /**
- * Get whether quantity could be changed
- *
- * @return int|null
- */
- public function getCanChangeQuantity();
- /**
- * Set whether quantity could be changed
- *
- * @param int $canChangeQuantity
- * @return $this
- */
- public function setCanChangeQuantity($canChangeQuantity);
- /**
- * Retrieve existing extension attributes object or create a new one.
- *
- * @return \Magento\Bundle\Api\Data\LinkExtensionInterface|null
- */
- public function getExtensionAttributes();
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\Bundle\Api\Data\LinkExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(\Magento\Bundle\Api\Data\LinkExtensionInterface $extensionAttributes);
- }
|