. */ namespace SP\Domain\Account\Adapters; 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; /** * Class AccountAdapterInterface */ interface AccountAdapterInterface { /** * @throws ConstraintException * @throws QueryException * @throws SPException * @throws ServiceException */ public function includeCustomFields(AccountEnrichedDto $data,): Collection; public function transform(AccountEnrichedDto $data): array; }