http://phing.info/

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.

Methods: 2 LOC: 48 Statements: 3
Legend: executednot executeddead code
Source file Statements Methods Total coverage
Provider.php 100.0% 100.0% 100.0%
 
1
<?php
2
/**
3
 * Xyster Framework
4
 *
5
 * This source file is subject to the new BSD license that is bundled
6
 * with this package in the file LICENSE.txt.
7
 * It is also available through the world-wide-web at this URL:
8
 * http://www.opensource.org/licenses/bsd-license.php
9
 *
10
 * @category  Xyster
11
 * @package   Xyster_Acl
12
 * @copyright Copyright LibreWorks, LLC (http://libreworks.net)
13
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
14
 * @version   $Id: Provider.php 418 2010-10-18 21:40:08Z jonathanhawk $
15
 */
16
namespace Xyster\Acl\Role;
17
/**
18
 * Default provider for authentication to authorization
19
 *
20
 * @category  Xyster
21
 * @package   Xyster_Acl
22
 * @copyright Copyright LibreWorks, LLC (http://libreworks.net)
23
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
24
 */
25
class Provider implements IProvider
26
{
27
    /**
28
     * Gets a Zend_Acl_Role_Interface based on the identity provided
29
     *
30
     * @param mixed $identity An identity as provided by Zend_Auth
31
     * @return \Zend_Acl_Role_Interface The role to which this identity corresponds
32
     */
33
    public function getRole( $identity )
34
    {
35 4
        return new \Zend_Acl_Role($identity);
36
    }
37
38
    /**
39
     * Gets the parent roles for the provided role
40
     *
41
     * @param \Zend_Acl_Role_Interface $role
42
     * @return array An array of \Zend_Acl_Role_Interface objects
43
     */
44
    public function getRoleParents( \Zend_Acl_Role_Interface $role )
45
    {
46 3
        return array();
47
    }
48 1
}


Report generated at 2010-10-18T17:19:48-04:00