. */ namespace SP\Domain\ItemPreset\In; use SP\Core\Exceptions\ConstraintException; use SP\Core\Exceptions\QueryException; use SP\Domain\Common\In\RepositoryInterface; use SP\Infrastructure\Database\QueryResult; /** * Class AccountDefaultPermissionRepository * * @package SP\Infrastructure\Account\Repositories */ interface ItemPresetRepositoryInterface extends RepositoryInterface { /** * Returns the item for given id * * @param string $type * @param int $userId * @param int $userGroupId * @param int $userProfileId * * @return QueryResult * @throws ConstraintException * @throws QueryException */ public function getByFilter(string $type, int $userId, int $userGroupId, int $userProfileId): QueryResult; }