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