. */ namespace SP\Domain\Account\Ports; use League\Fractal\Resource\Collection; use SP\Domain\Account\Dtos\AccountEnrichedDto; use SP\Domain\Common\Services\ServiceException; use SP\Domain\Core\Exceptions\ConstraintException; use SP\Domain\Core\Exceptions\QueryException; use SP\Domain\Core\Exceptions\SPException; /** * Interface AccountAdapter */ interface AccountAdapter { /** * @throws ConstraintException * @throws QueryException * @throws SPException * @throws ServiceException */ public function includeCustomFields(AccountEnrichedDto $accountEnrichedDto): Collection; public function transform(AccountEnrichedDto $data): array; }