Skip to content

Commit

Permalink
interface hierarchy fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
s3b4stian committed Nov 22, 2023
1 parent 01a3e16 commit 6d15e4f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/Linna/Authorization/PermissionExtendedMapperInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@

namespace Linna\Authorization;

use Linna\DataMapper\FetchByNameInterface;
use Linna\DataMapper\MapperInterface;
//use Linna\DataMapper\FetchByNameInterface;
//use Linna\DataMapper\MapperInterface;

/**
* Permission Extended Mapper Interface.
*
* <p>Contain methods required from concrete permission mapper.</p>
*/
interface PermissionExtendedMapperInterface extends MapperInterface, FetchByNameInterface, FetchByUserInterface, FetchByRoleInterface
interface PermissionExtendedMapperInterface extends PermissionMapperInterface
{
}
9 changes: 5 additions & 4 deletions src/Linna/Authorization/RoleExtendedMapperInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@

use Linna\Authorization\User;
use Linna\Authorization\Permission;
use Linna\Authorization\RoleExtendedExtended;
use Linna\DataMapper\MapperInterface;
use Linna\DataMapper\FetchByNameInterface;
use Linna\Authorization\RoleExtended;

//use Linna\DataMapper\MapperInterface;
//use Linna\DataMapper\FetchByNameInterface;

/**
* Role Extended Mapper Interface.
*
* Contain methods required from concrete RoleExtended Mapper.
*/
interface RoleExtendedMapperInterface extends MapperInterface, FetchByNameInterface, FetchByPermissionInterface, FetchByUserInterface
interface RoleExtendedMapperInterface extends RoleMapperInterface
{
/**
* Grant a permission at role.
Expand Down
7 changes: 4 additions & 3 deletions src/Linna/Authorization/UserExtendedMapperInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@
use Linna\Authorization\UserExtended;
use Linna\Authorization\Permission;
use Linna\Authorization\Role;
use Linna\DataMapper\MapperInterface;
use Linna\DataMapper\FetchByNameInterface;

//use Linna\DataMapper\MapperInterface;
//use Linna\DataMapper\FetchByNameInterface;

/**
* User Mapper Interface.
*
* Contains methods required from concrete User Mapper.
*/
interface UserExtendedMapperInterface extends MapperInterface, FetchByNameInterface, FetchByPermissionInterface, FetchByRoleInterface
interface UserExtendedMapperInterface extends UserMapperInterface
{
/**
* Grant a permission to an user.
Expand Down

0 comments on commit 6d15e4f

Please sign in to comment.