3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Permissions\Acl\Role
;
12 class GenericRole
implements RoleInterface
22 * Sets the Role identifier
24 * @param string $roleId
26 public function __construct($roleId)
28 $this->roleId
= (string) $roleId;
32 * Defined by RoleInterface; returns the Role identifier
36 public function getRoleId()
42 * Defined by RoleInterface; returns the Role identifier
43 * Proxies to getRoleId()
47 public function __toString()
49 return $this->getRoleId();