. */ namespace SP\Domain\Account\Out; use League\Fractal\Resource\Collection; use SP\DataModel\Dto\AccountDetailsResponse; use SP\Domain\CustomField\CustomFieldServiceInterface; /** * Class AccountAdapter * * @package SP\Adapters */ 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( AccountDetailsResponse $data, CustomFieldServiceInterface $customFieldService ): Collection; public function transform(AccountDetailsResponse $data): array; }