2022-06-25 14:24:14 +02:00
|
|
|
<?php
|
|
|
|
/*
|
2023-09-20 06:17:56 +02:00
|
|
|
* UserGroupRepositoryInterface.php
|
|
|
|
* Copyright (c) 2023 james@firefly-iii.org
|
2022-06-25 14:24:14 +02:00
|
|
|
*
|
|
|
|
* This file is part of Firefly III (https://github.com/firefly-iii).
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2023-09-20 06:17:56 +02:00
|
|
|
namespace FireflyIII\Repositories\UserGroup;
|
2022-10-16 19:22:26 +02:00
|
|
|
|
2023-09-20 06:17:56 +02:00
|
|
|
use FireflyIII\User;
|
|
|
|
use Illuminate\Contracts\Auth\Authenticatable;
|
|
|
|
use Illuminate\Support\Collection;
|
2022-06-25 14:24:14 +02:00
|
|
|
|
|
|
|
/**
|
2023-09-20 06:17:56 +02:00
|
|
|
* Interface UserGroupRepositoryInterface
|
2022-06-25 14:24:14 +02:00
|
|
|
*/
|
2023-09-20 06:17:56 +02:00
|
|
|
interface UserGroupRepositoryInterface
|
2022-06-25 14:24:14 +02:00
|
|
|
{
|
2023-09-20 06:17:56 +02:00
|
|
|
/**
|
|
|
|
* @return Collection
|
|
|
|
*/
|
|
|
|
public function get(): Collection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Collection
|
|
|
|
*/
|
|
|
|
public function getAll(): Collection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param User|Authenticatable|null $user
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function setUser(User | Authenticatable | null $user): void;
|
2022-07-16 09:25:10 +02:00
|
|
|
}
|