Slackwolf\Game\Role::isRole PHP Method

isRole() public method

Returns a bool on whether the Role name matches.
public isRole ( $roleName ) : boolean
$roleName The Role name to compare against.
return boolean
    public function isRole($roleName)
    {
        return $roleName == $this->getName();
    }