Skip to content

Commit 176d35c

Browse files
author
Alex Paliarush
committed
MAGETWO-65444: Add @api annotation to Rule module
1 parent c85e790 commit 176d35c

File tree

15 files changed

+46
-28
lines changed

15 files changed

+46
-28
lines changed

app/code/Magento/Rule/Model/AbstractModel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
/**
1212
* Abstract Rule entity data model
13+
*
1314
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
15+
* @api
1416
*/
1517
abstract class AbstractModel extends \Magento\Framework\Model\AbstractExtensibleModel
1618
{

app/code/Magento/Rule/Model/Action/AbstractAction.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
use Magento\Framework\Data\Form\Element\AbstractElement;
1010

1111
/**
12-
* Quote rule action abstract
12+
* Abstract rule action
13+
*
14+
* @api
1315
*/
1416
abstract class AbstractAction extends \Magento\Framework\DataObject implements ActionInterface
1517
{

app/code/Magento/Rule/Model/Action/ActionInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*/
66
namespace Magento\Rule\Model\Action;
77

8+
/**
9+
* @api
10+
*/
811
interface ActionInterface
912
{
1013
}

app/code/Magento/Rule/Model/Action/Collection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*/
66
namespace Magento\Rule\Model\Action;
77

8+
/**
9+
* @api
10+
*/
811
class Collection extends AbstractAction
912
{
1013
/**

app/code/Magento/Rule/Model/ActionFactory.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Rule\Model;
78

9+
/**
10+
* @api
11+
*/
812
class ActionFactory
913
{
1014
/**

app/code/Magento/Rule/Model/Condition/AbstractCondition.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* Abstract Rule condition data model
9-
*
10-
* @method string getOperator()
11-
* @method string getFormName()
12-
* @method setFormName()
13-
*/
147
namespace Magento\Rule\Model\Condition;
158

169
use Magento\Framework\Data\Form;
1710
use Magento\Framework\Data\Form\Element\AbstractElement;
1811

1912
/**
13+
* Abstract Rule condition data model
14+
*
15+
* @method string getOperator()
16+
* @method string getFormName()
17+
* @method setFormName()
2018
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
2119
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
20+
* @api
2221
*/
2322
abstract class AbstractCondition extends \Magento\Framework\DataObject implements ConditionInterface
2423
{

app/code/Magento/Rule/Model/Condition/Combine.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*/
66
namespace Magento\Rule\Model\Condition;
77

8+
/**
9+
* @api
10+
*/
811
class Combine extends AbstractCondition
912
{
1013
/**

app/code/Magento/Rule/Model/Condition/ConditionInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*/
66
namespace Magento\Rule\Model\Condition;
77

8+
/**
9+
* @api
10+
*/
811
interface ConditionInterface
912
{
1013
/**

app/code/Magento/Rule/Model/Condition/Context.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
namespace Magento\Rule\Model\Condition;
8+
79
/**
8-
* Abstract block context object. Will be used as rule condition constructor modification point after release.
10+
* Abstract block context object. Is used as rule condition constructor modification point.
11+
*
912
* Important: Should not be modified by extension developers.
1013
*/
11-
namespace Magento\Rule\Model\Condition;
12-
1314
class Context implements \Magento\Framework\ObjectManager\ContextInterface
1415
{
1516
/**

app/code/Magento/Rule/Model/Condition/Product/AbstractProduct.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* Abstract Rule product condition data model
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
11-
*/
127
namespace Magento\Rule\Model\Condition\Product;
138

149
/**
10+
* Abstract Rule product condition data model
11+
*
1512
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
1613
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
14+
* @api
1715
*/
1816
abstract class AbstractProduct extends \Magento\Rule\Model\Condition\AbstractCondition
1917
{

0 commit comments

Comments
 (0)