Skip to content

Commit

Permalink
Merge pull request #1053 from magento-nord/MAGETWO-66374
Browse files Browse the repository at this point in the history
Implemented task:
- MAGETWO-66374 Add @api annotation
  • Loading branch information
balex13 authored Apr 24, 2017
2 parents e0bd129 + 59931bc commit a9e8595
Show file tree
Hide file tree
Showing 72 changed files with 157 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
/**
* Export entity product model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*
* @SuppressWarnings(PHPMD.TooManyFields)
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Export entity product type abstract model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*/
abstract class AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Export entity product type simple model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*/
class Simple extends \Magento\CatalogImportExport\Model\Export\Product\Type\AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
use Magento\CatalogImportExport\Model\Export\RowCustomizerInterface;
use Magento\Framework\ObjectManagerInterface;

/**
* Class Composite
*
* @api
*/
class Composite implements RowCustomizerInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

/**
* Interface RowCustomizerInterface
*
* @api
*/
interface RowCustomizerInterface
{
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/CatalogImportExport/Model/Import/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

/**
* Import entity product model
*
* @api
*
* @SuppressWarnings(PHPMD.TooManyFields)
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
*/
namespace Magento\CatalogImportExport\Model\Import\Product;

/**
* Class CategoryProcessor
*
* @api
*/
class CategoryProcessor
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
/**
* Entity class which provide possibility to import product custom options
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*
* @SuppressWarnings(PHPMD.TooManyFields)
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @todo Need to explode this class because of several responsibilities
*/
class Option extends \Magento\ImportExport\Model\Import\Entity\AbstractEntity
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
*/
namespace Magento\CatalogImportExport\Model\Import\Product;

/**
* Interface RowValidatorInterface
*
* @api
*/
interface RowValidatorInterface extends \Magento\Framework\Validator\ValidatorInterface
{
const ERROR_INVALID_SCOPE = 'invalidScope';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
*/
namespace Magento\CatalogImportExport\Model\Import\Product;

/**
* Class SkuProcessor
*
* @api
*/
class SkuProcessor
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
/**
* Import entity abstract product type model
*
* @api
*
* @SuppressWarnings(PHPMD.TooManyFields)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Import entity simple product type
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*/
class Simple extends \Magento\CatalogImportExport\Model\Import\Product\Type\AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Import entity virtual product type
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*/
class Virtual extends \Magento\CatalogImportExport\Model\Import\Product\Type\Simple
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
use Magento\CatalogImportExport\Model\Import\Product;
use Magento\Framework\Validator\AbstractValidator;

/**
* Class Validator
*
* @api
*/
class Validator extends AbstractValidator implements RowValidatorInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Import entity product model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*/
class Uploader extends \Magento\MediaStorage\Model\File\Uploader
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
namespace Magento\CustomerImportExport\Model\Export;

/**
* Customer address export
*
* @api
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Address extends \Magento\ImportExport\Model\Export\Entity\AbstractEav
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
/**
* Export entity customer model
*
* @api
*
* @method \Magento\Customer\Model\ResourceModel\Attribute\Collection getAttributeCollection() getAttributeCollection()
*/
class Customer extends \Magento\ImportExport\Model\Export\Entity\AbstractEav
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

/**
* Import entity abstract customer model
*
* @api
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
abstract class AbstractCustomer extends \Magento\ImportExport\Model\Import\Entity\AbstractEav
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface;

/**
* Customer address import
*
* @SuppressWarnings(PHPMD.TooManyFields)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface;

/**
* Customer entity import
*
* @api
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Customer extends AbstractCustomer
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/ImportExport/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* ImportExport data helper
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*/
class Data extends \Magento\Framework\App\Helper\AbstractHelper
{
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/ImportExport/Helper/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

/**
* ImportExport history reports helper
*
* @api
*/
class Report extends \Magento\Framework\App\Helper\AbstractHelper
{
Expand Down
3 changes: 2 additions & 1 deletion app/code/Magento/ImportExport/Model/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
/**
* Export model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Export extends \Magento\ImportExport\Model\AbstractModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
/**
* Export entity abstract model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*
* @SuppressWarnings(PHPMD.TooManyFields)
*/
abstract class AbstractEntity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Abstract adapter model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*/
abstract class AbstractAdapter
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/ImportExport/Model/Export/Adapter/Csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Export adapter csv.
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*/
class Csv extends \Magento\ImportExport\Model\Export\Adapter\AbstractAdapter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
*/
namespace Magento\ImportExport\Model\Export;

/**
* Provides export configuration
*
* @api
*/
interface ConfigInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
/**
* Export EAV entity abstract model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
abstract class AbstractEav extends \Magento\ImportExport\Model\Export\AbstractEntity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
/**
* Export entity abstract model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*
* @SuppressWarnings(PHPMD.TooManyFields)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/ImportExport/Model/History.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
/**
* Import history model
*
* @api
*
* @method \Magento\ImportExport\Model\ResourceModel\History _getResource()
* @method \Magento\ImportExport\Model\ResourceModel\History getResource()
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/ImportExport/Model/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Import model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*
* @method string getBehavior() getBehavior()
* @method \Magento\ImportExport\Model\Import setEntity() setEntity(string $value)
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/ImportExport/Model/Import/AbstractEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

/**
* Import entity abstract model
*
* @api
*
* @SuppressWarnings(PHPMD.TooManyFields)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/ImportExport/Model/Import/AbstractSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

/**
* Data source with columns for Magento_ImportExport
*
* @api
*/
abstract class AbstractSource implements \SeekableIterator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
*/
namespace Magento\ImportExport\Model\Import;

/**
* Provides import configuration
*
* @api
*/
interface ConfigInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

/**
* Import EAV entity abstract model
*
* @api
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
abstract class AbstractEav extends \Magento\ImportExport\Model\Import\AbstractEntity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

/**
* Import entity abstract model
*
* @api
*
* @SuppressWarnings(PHPMD.TooManyFields)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Class describe Processing Error
*
* @api
*/
class ProcessingError
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Interface for Processing errors Aggregator
*
* @api
*/
interface ProcessingErrorAggregatorInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Collection by pages iterator
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*/
class CollectionByPagesIterator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* ImportExport MySQL resource helper model
*
* @author Magento Core Team <core@magentocommerce.com>
* @api
*/
namespace Magento\ImportExport\Model\ResourceModel;

Expand Down
Loading

0 comments on commit a9e8595

Please sign in to comment.