%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/bbw/farmaci/kritik-portale/vendor/zfr/rbac/src/Rbac/Role/
Upload File :
Create Path :
Current File : /var/www/html/bbw/farmaci/kritik-portale/vendor/zfr/rbac/src/Rbac/Role/RoleInterface.php

<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Rbac\Role;

/**
 * Interface for a flat role
 *
 * The role embeds all the information needed to evaluate if a given role has a given permission
 */
interface RoleInterface
{
    /**
     * Get the name of the role.
     *
     * @return string
     */
    public function getName();

    /**
     * Checks if a permission exists for this role (it does not check child roles)
     *
     * @param  mixed $permission
     * @return bool
     */
    public function hasPermission($permission);
}

Zerion Mini Shell 1.0