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 / Resource / GenericResource.php
blobb9b8946741bdd9863d2fb3e20d9bb2247ad97d7f
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\Resource;
12 class GenericResource implements ResourceInterface
14 /**
15 * Unique id of Resource
17 * @var string
19 protected $resourceId;
21 /**
22 * Sets the Resource identifier
24 * @param string $resourceId
26 public function __construct($resourceId)
28 $this->resourceId = (string) $resourceId;
31 /**
32 * Defined by ResourceInterface; returns the Resource identifier
34 * @return string
36 public function getResourceId()
38 return $this->resourceId;
41 /**
42 * Defined by ResourceInterface; returns the Resource identifier
43 * Proxies to getResourceId()
45 * @return string
47 public function __toString()
49 return $this->getResourceId();