Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/plan/PlanRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@

namespace hiqdev\php\billing\plan;

use hiqdev\DataMapper\Repository\RepositoryInterface;
use hiqdev\php\billing\action\ActionInterface;
use hiqdev\php\billing\Exception\EntityNotFoundException;
use hiqdev\php\billing\order\OrderInterface;

/**
* @author Andrii Vasyliev <sol@hiqdev.com>
*/
interface PlanRepositoryInterface
interface PlanRepositoryInterface extends RepositoryInterface
{
/**
* Finds suitable plan for given action: customer + type + target.
Expand Down
21 changes: 21 additions & 0 deletions tests/support/plan/SimplePlanRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace hiqdev\php\billing\tests\support\plan;

use hiqdev\DataMapper\Query\Specification;
use hiqdev\php\billing\action\ActionInterface;
use hiqdev\php\billing\order\OrderInterface;
use hiqdev\php\billing\plan\PlanInterface;
Expand Down Expand Up @@ -51,4 +52,24 @@ public function getById(int $id): PlanInterface
{
throw new \Exception('not implemented');
}

public function count(Specification $specification)
{
throw new \Exception('not implemented');
}

public function findAll(Specification $specification)
{
throw new \Exception('not implemented');
}

public function findOne(Specification $specification)
{
throw new \Exception('not implemented');
}

public function findOneOrFail(Specification $specification)
{
throw new \Exception('not implemented');
}
}
Loading