Source of file RoleInterface.php
Size: 1,218 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/Permissions/Rbac/RoleInterface.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Permissions\Rbac; use RecursiveIterator; interface RoleInterface extends RecursiveIterator { /** * Get the name of the role. * * @return string */ public function getName(); /** * Add permission to the role. * * @param $name * @return RoleInterface */ public function addPermission($name); /** * Checks if a permission exists for this role or any child roles. * * @param string $name * @return bool */ public function hasPermission($name); /** * Add a child. * * @param RoleInterface|string $child * @return Role */ public function addChild($child); /** * @param RoleInterface $parent * @return RoleInterface */ public function setParent($parent); /** * @return null|RoleInterface */ public function getParent(); } |