ManaPHP\Authentication\UserIdentity::__construct PHP Method

__construct() public method

UserIdentity constructor.
public __construct ( array $options = [] )
$options array
    public function __construct($options = [])
    {
        if (isset($options['userId'])) {
            $this->_userId = $options['userId'];
        }
        if (isset($options['userName'])) {
            $this->_userName = $options['userName'];
        }
        if (isset($options['roleId'])) {
            $this->_roleId = $options['roleId'];
        }
        if (isset($options['roleName'])) {
            $this->_roleName = $options['roleName'];
        }
    }