Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Permissions / Acl / Role / GenericRole.php
blobe2c17b2c62e32b45bb29f0b3f12eb354d0f67391
1 <?php
2 /**
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
8 */
10 namespace Zend\Permissions\Acl\Role;
12 class GenericRole implements RoleInterface
14 /**
15 * Unique id of Role
17 * @var string
19 protected $roleId;
21 /**
22 * Sets the Role identifier
24 * @param string $roleId
26 public function __construct($roleId)
28 $this->roleId = (string) $roleId;
31 /**
32 * Defined by RoleInterface; returns the Role identifier
34 * @return string
36 public function getRoleId()
38 return $this->roleId;
41 /**
42 * Defined by RoleInterface; returns the Role identifier
43 * Proxies to getRoleId()
45 * @return string
47 public function __toString()
49 return $this->getRoleId();