File size: 556 Bytes
cf14c12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <?php
declare(strict_types=1);
namespace Affiliate\Domain\Repositories;
use Affiliate\Domain\Entities\AffiliateEntity;
use Affiliate\Domain\Exceptions\AffiliateNotFoundException;
use Affiliate\Domain\ValueObjects\Code;
use Shared\Domain\Repositories\RepositoryInterface;
interface AffiliateRepositoryInterface extends RepositoryInterface
{
/**
* Find payout entity by id
*
* @param Code $code
* @return AffiliateEntity
* @throws AffiliateNotFoundException
*/
public function ofCode(Code $code): AffiliateEntity;
}
|