Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (38 sloc) 574 Bytes
<?php
namespace Majkl578\NetteAddons\Doctrine2Identity\Security;
/**
* @author Michael Moravec
*/
class FakeIdentity implements \Nette\Security\IIdentity
{
/** @var mixed */
private $id;
/** @var string */
private $class;
public function __construct($id, $class)
{
$this->id = $id;
$this->class = $class;
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return string
*/
public function getClass()
{
return $this->class;
}
/**
* @return array
*/
public function getRoles()
{
return array();
}
}