Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/Identity/AuthenticatedIdentity.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
namespace Laminas\ApiTools\MvcAuth\Identity;

use Laminas\Permissions\Rbac\Role;
use Laminas\Permissions\Rbac\RoleInterface;

class AuthenticatedIdentity extends Role implements IdentityInterface
{
/** @var string|RoleInterface */
/** @var string|IdentityInterface */
protected $identity;

/** @param string|RoleInterface $identity */
/** @param string|IdentityInterface $identity */
public function __construct($identity)
{
$this->identity = $identity;
Expand All @@ -24,7 +23,7 @@ public function getRoleId()
return $this->name;
}

/** @return string|RoleInterface */
/** @return string|IdentityInterface */
public function getAuthenticationIdentity()
{
return $this->identity;
Expand Down