Skip to content

Commit 04a6a3c

Browse files
HP-1631: ActionInterface must extend EntityInterface
1 parent 183a7dc commit 04a6a3c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/action/AbstractAction.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010

1111
namespace hiqdev\php\billing\action;
1212

13-
use DateInterval;
1413
use DateTimeImmutable;
1514
use hiqdev\php\billing\customer\CustomerInterface;
16-
use hiqdev\php\billing\EntityInterface;
1715
use hiqdev\php\billing\Exception\CannotReassignException;
1816
use hiqdev\php\billing\sale\SaleInterface;
1917
use hiqdev\php\billing\target\TargetInterface;
@@ -27,7 +25,7 @@
2725
*
2826
* @author Andrii Vasyliev <[email protected]>
2927
*/
30-
abstract class AbstractAction implements ActionInterface, EntityInterface
28+
abstract class AbstractAction implements ActionInterface
3129
{
3230
/** @var int */
3331
protected $id;

src/action/ActionInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
use DateTimeImmutable;
1414
use hiqdev\php\billing\customer\CustomerInterface;
15+
use hiqdev\php\billing\EntityInterface;
1516
use hiqdev\php\billing\price\PriceInterface;
1617
use hiqdev\php\billing\sale\SaleInterface;
1718
use hiqdev\php\billing\target\TargetInterface;
@@ -30,7 +31,7 @@
3031
*
3132
* @author Andrii Vasyliev <[email protected]>
3233
*/
33-
interface ActionInterface extends \JsonSerializable
34+
interface ActionInterface extends EntityInterface
3435
{
3536
/**
3637
* Returns if the given price applicable to this action.

0 commit comments

Comments
 (0)