Skip to content

Commit

Permalink
Fix #96: Remove ItemInterface (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Jan 15, 2022
1 parent 48641f4 commit 0102e9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
7 changes: 6 additions & 1 deletion src/Item.php
Expand Up @@ -8,7 +8,7 @@
* Items are RBAC hierarchy entities that could be assigned to the user.
* Both roles and permissions are items.
*/
abstract class Item implements ItemInterface
abstract class Item
{
public const TYPE_ROLE = 'role';
public const TYPE_PERMISSION = 'permission';
Expand Down Expand Up @@ -52,6 +52,9 @@ final public function __construct(string $name)
*/
abstract public function getType(): string;

/**
* @return string Authorization item name.
*/
final public function getName(): string
{
return $this->name;
Expand Down Expand Up @@ -137,6 +140,8 @@ final public function hasUpdatedAt(): bool
}

/**
* @return array Authorization item attribute values indexed by attribute names.
*
* @psalm-return array{
* name:string,
* description:string,
Expand Down
25 changes: 0 additions & 25 deletions src/ItemInterface.php

This file was deleted.

0 comments on commit 0102e9e

Please sign in to comment.