![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-catalog/Api/Data/ |
<?php /** * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Catalog\Api\Data; /** * @api * @since 100.0.2 */ interface ProductInterface extends \Magento\Framework\Api\CustomAttributesDataInterface { /**#@+ * Constants defined for keys of data array */ const SKU = 'sku'; const NAME = 'name'; const PRICE = 'price'; const WEIGHT = 'weight'; const STATUS = 'status'; const VISIBILITY = 'visibility'; const ATTRIBUTE_SET_ID = 'attribute_set_id'; const TYPE_ID = 'type_id'; const CREATED_AT = 'created_at'; const UPDATED_AT = 'updated_at'; const MEDIA_GALLERY = 'media_gallery'; const TIER_PRICE = 'tier_price'; const ATTRIBUTES = [ self::SKU, self::NAME, self::PRICE, self::WEIGHT, self::STATUS, self::VISIBILITY, self::ATTRIBUTE_SET_ID, self::TYPE_ID, self::CREATED_AT, self::UPDATED_AT, self::MEDIA_GALLERY, self::TIER_PRICE, ]; /**#@-*/ /** * Product id * * @return int|null */ public function getId(); /** * Set product id * * @param int $id * @return $this */ public function setId($id); /** * Product sku * * @return string */ public function getSku(); /** * Set product sku * * @param string $sku * @return $this */ public function setSku($sku); /** * Product name * * @return string|null */ public function getName(); /** * Set product name * * @param string $name * @return $this */ public function setName($name); /** * Product attribute set id * * @return int|null */ public function getAttributeSetId(); /** * Set product attribute set id * * @param int $attributeSetId * @return $this */ public function setAttributeSetId($attributeSetId); /** * Product price * * @return float|null */ public function getPrice(); /** * Set product price * * @param float $price * @return $this */ public function setPrice($price); /** * Product status * * @return int|null */ public function getStatus(); /** * Set product status * * @param int $status * @return $this */ public function setStatus($status); /** * Product visibility * * @return int|null */ public function getVisibility(); /** * Set product visibility * * @param int $visibility * @return $this */ public function setVisibility($visibility); /** * Product type id * * @return string|null */ public function getTypeId(); /** * Set product type id * * @param string $typeId * @return $this */ public function setTypeId($typeId); /** * Product created date * * @return string|null */ public function getCreatedAt(); /** * Set product created date * * @param string $createdAt * @return $this */ public function setCreatedAt($createdAt); /** * Product updated date * * @return string|null */ public function getUpdatedAt(); /** * Set product updated date * * @param string $updatedAt * @return $this */ public function setUpdatedAt($updatedAt); /** * Product weight * * @return float|null */ public function getWeight(); /** * Set product weight * * @param float $weight * @return $this */ public function setWeight($weight); /** * Retrieve existing extension attributes object or create a new one. * * @return \Magento\Catalog\Api\Data\ProductExtensionInterface|null */ public function getExtensionAttributes(); /** * Set an extension attributes object. * * @param \Magento\Catalog\Api\Data\ProductExtensionInterface $extensionAttributes * @return $this */ public function setExtensionAttributes(\Magento\Catalog\Api\Data\ProductExtensionInterface $extensionAttributes); /** * Get product links info * * @return \Magento\Catalog\Api\Data\ProductLinkInterface[]|null */ public function getProductLinks(); /** * Set product links info * * @param \Magento\Catalog\Api\Data\ProductLinkInterface[] $links * @return $this */ public function setProductLinks(array $links = null); /** * Get list of product options * * @return \Magento\Catalog\Api\Data\ProductCustomOptionInterface[]|null */ public function getOptions(); /** * Set list of product options * * @param \Magento\Catalog\Api\Data\ProductCustomOptionInterface[] $options * @return $this */ public function setOptions(array $options = null); /** * Get media gallery entries * * @return \Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface[]|null */ public function getMediaGalleryEntries(); /** * Set media gallery entries * * @param \Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface[] $mediaGalleryEntries * @return $this */ public function setMediaGalleryEntries(array $mediaGalleryEntries = null); /** * Gets list of product tier prices * * @return \Magento\Catalog\Api\Data\ProductTierPriceInterface[]|null */ public function getTierPrices(); /** * Sets list of product tier prices * * @param \Magento\Catalog\Api\Data\ProductTierPriceInterface[] $tierPrices * @return $this */ public function setTierPrices(array $tierPrices = null); }