. */ namespace SP\Domain\Account\Ports; use SP\Domain\Account\Dtos\AccountCreateDto; use SP\Domain\Account\Dtos\AccountUpdateDto; use SP\Domain\Common\Services\ServiceException; use SP\Domain\Core\Exceptions\ConstraintException; use SP\Domain\Core\Exceptions\QueryException; /** * Class AccountItemsService */ interface AccountItemsService { /** * Updates external items for the account * * @throws QueryException * @throws ConstraintException * @throws ServiceException */ public function updateItems( bool $userCanChangePermissions, int $accountId, AccountUpdateDto $accountUpdateDto ): void; /** * Adds external items to the account */ public function addItems(bool $userCanChangePermissions, int $accountId, AccountCreateDto $accountCreateDto): void; }