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