From 7a9528df2f66b319be6fafac625638fabfcd5ec0 Mon Sep 17 00:00:00 2001 From: okarpenko <okarpenko@ebay.com> Date: Tue, 31 Mar 2015 18:11:03 +0300 Subject: [PATCH] MAGETWO-32631: Define Public API - South (CS) --- .../CustomerImportExport/Model/Export/Address.php | 1 - .../CustomerImportExport/Model/Export/Customer.php | 1 - app/code/Magento/Wishlist/Model/Item.php | 12 ------------ app/code/Magento/Wishlist/Model/Wishlist.php | 13 ------------- 4 files changed, 27 deletions(-) diff --git a/app/code/Magento/CustomerImportExport/Model/Export/Address.php b/app/code/Magento/CustomerImportExport/Model/Export/Address.php index 1f73b8493f2..bfe77d3e13c 100644 --- a/app/code/Magento/CustomerImportExport/Model/Export/Address.php +++ b/app/code/Magento/CustomerImportExport/Model/Export/Address.php @@ -202,7 +202,6 @@ class Address extends \Magento\ImportExport\Model\Export\Entity\AbstractEav /** * Export process * - * @api * @return string */ public function export() diff --git a/app/code/Magento/CustomerImportExport/Model/Export/Customer.php b/app/code/Magento/CustomerImportExport/Model/Export/Customer.php index 98a533246c9..f611129b7aa 100644 --- a/app/code/Magento/CustomerImportExport/Model/Export/Customer.php +++ b/app/code/Magento/CustomerImportExport/Model/Export/Customer.php @@ -119,7 +119,6 @@ class Customer extends \Magento\ImportExport\Model\Export\Entity\AbstractEav /** * Export process. * - * @api * @return string */ public function export() diff --git a/app/code/Magento/Wishlist/Model/Item.php b/app/code/Magento/Wishlist/Model/Item.php index 29c4ff12c51..51669038336 100644 --- a/app/code/Magento/Wishlist/Model/Item.php +++ b/app/code/Magento/Wishlist/Model/Item.php @@ -176,7 +176,6 @@ class Item extends AbstractModel implements ItemInterface /** * Set quantity. If quantity is less than 0 - set it to 1 * - * @api * @param int $qty * @return $this */ @@ -309,7 +308,6 @@ class Item extends AbstractModel implements ItemInterface /** * Validate wish list item data * - * @api * @return bool * @throws \Magento\Framework\Exception\LocalizedException */ @@ -353,7 +351,6 @@ class Item extends AbstractModel implements ItemInterface /** * Load item by product, wishlist and shared stores * - * @api * @param int $wishlistId * @param int $productId * @param array $sharedStores @@ -403,7 +400,6 @@ class Item extends AbstractModel implements ItemInterface * Return true if product was successful added or exception with code * Return false for disabled or unvisible products * - * @api * @param \Magento\Checkout\Model\Cart $cart * @param bool $delete delete the item after successful add to cart * @return bool @@ -475,7 +471,6 @@ class Item extends AbstractModel implements ItemInterface * Returns formatted buy request - object, holding request received from * product view page with keys and options for configured product * - * @api * @return \Magento\Framework\Object */ public function getBuyRequest() @@ -577,7 +572,6 @@ class Item extends AbstractModel implements ItemInterface /** * Check product representation in item * - * @api * @param \Magento\Catalog\Model\Product $product * @return bool */ @@ -626,7 +620,6 @@ class Item extends AbstractModel implements ItemInterface /** * Initialize item options * - * @api * @param array $options * @return $this */ @@ -641,7 +634,6 @@ class Item extends AbstractModel implements ItemInterface /** * Get all item options * - * @api * @return Option[] */ public function getOptions() @@ -662,7 +654,6 @@ class Item extends AbstractModel implements ItemInterface /** * Add option to item * - * @api * @param Option|\Magento\Framework\Object|array $option * @return $this * @throws \Magento\Framework\Exception\LocalizedException @@ -694,7 +685,6 @@ class Item extends AbstractModel implements ItemInterface /** * Remove option from item options * - * @api * @param string $code * @return $this */ @@ -710,7 +700,6 @@ class Item extends AbstractModel implements ItemInterface /** * Get item option by code * - * @api * @param string $code * @return Option|null */ @@ -774,7 +763,6 @@ class Item extends AbstractModel implements ItemInterface * If we need to load only some of options, then option code or array of option codes * can be provided in $optionsFilter. * - * @api * @param int $id * @param null|string|array $optionsFilter * diff --git a/app/code/Magento/Wishlist/Model/Wishlist.php b/app/code/Magento/Wishlist/Model/Wishlist.php index 7d1120e19b7..abd6bb10361 100644 --- a/app/code/Magento/Wishlist/Model/Wishlist.php +++ b/app/code/Magento/Wishlist/Model/Wishlist.php @@ -172,7 +172,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent /** * Load wishlist by customer id * - * @api * @param int $customerId * @param bool $create Create wishlist if don't exists * @return $this @@ -197,7 +196,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent /** * Retrieve wishlist name * - * @api * @return string */ public function getName() @@ -212,7 +210,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent /** * Set random sharing code * - * @api * @return $this */ public function generateSharingCode() @@ -224,7 +221,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent /** * Load by sharing code * - * @api * @param string $code * @return $this */ @@ -339,7 +335,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent /** * Retrieve wishlist item collection * - * @api * @param int $itemId * @return false|Item */ @@ -354,7 +349,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent /** * Adding item to wishlist * - * @api * @param Item $item * @return $this */ @@ -372,7 +366,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent * Adds new product to wishlist. * Returns new item or string on error. * - * @api * @param int|\Magento\Catalog\Model\Product $product * @param \Magento\Framework\Object|array|string|null $buyRequest * @param bool $forciblySetQty @@ -462,7 +455,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent /** * Set customer id * - * @api * @param int $customerId * @return $this */ @@ -474,7 +466,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent /** * Retrieve customer id * - * @api * @return int */ public function getCustomerId() @@ -533,7 +524,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent /** * Retrieve wishlist store object * - * @api * @return \Magento\Store\Model\Store */ public function getStore() @@ -547,7 +537,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent /** * Set wishlist store * - * @api * @param \Magento\Store\Model\Store $store * @return $this */ @@ -560,7 +549,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent /** * Retrieve wishlist items count * - * @api * @return int */ public function getItemsCount() @@ -608,7 +596,6 @@ class Wishlist extends \Magento\Framework\Model\AbstractModel implements \Magent * * For more options see \Magento\Catalog\Helper\Product->addParamsToBuyRequest() * - * @api * @param int|Item $itemId * @param \Magento\Framework\Object $buyRequest * @param null|array|\Magento\Framework\Object $params -- GitLab