Files
firefly-iii/app/Repositories/User/UserRepositoryInterface.php

36 lines
671 B
PHP
Raw Normal View History

2016-03-12 14:18:28 +01:00
<?php
2016-04-01 16:44:46 +02:00
declare(strict_types = 1);
2016-03-12 14:18:28 +01:00
/**
* UserRepositoryInterface.php
2016-04-01 16:44:46 +02:00
* Copyright (C) 2016 thegrumpydictator@gmail.com
2016-03-12 14:18:28 +01:00
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace FireflyIII\Repositories\User;
use FireflyIII\User;
/**
* Interface UserRepositoryInterface
*
* @package FireflyIII\Repositories\User
*/
interface UserRepositoryInterface
{
/**
* @param User $user
* @param string $role
*
* @return bool
*/
public function attachRole(User $user, string $role): bool;
/**
* @return int
*/
public function count(): int;
2016-03-14 20:38:23 +01:00
}