http://phing.info/

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.

Methods: 1 LOC: 43 Statements: 3

Source file Statements Methods Total coverage
Resource.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_Orm
12
 * @copyright Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
13
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
14
 * @version   $Id: Resource.php 199 2008-01-19 21:54:40Z doublecompile $
15
 */
16
/**
17
 * @see Xyster_Orm_Entity
18
 */
19 1
require_once 'Xyster/Orm/Entity.php';
20
/**
21
 * Zend_Acl_Resource_Interface
22
 */
23 1
require_once 'Zend/Acl/Resource/Interface.php';
24
/**
25
 * Entity that doubles as an ACL resource
26
 *
27
 * @category  Xyster
28
 * @package   Xyster_Orm
29
 * @copyright Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
30
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
31
 */
32
class Xyster_Orm_Entity_Resource extends Xyster_Orm_Entity implements Zend_Acl_Resource_Interface
33
{
34
    /**
35
     * Returns the string identifier of the Resource
36
     *
37
     * @return string
38
     */
39
    public function getResourceId()
40
    {
41 1
        return get_class($this) . '[' . $this->getPrimaryKeyAsString() . ']';
42
    }
43
}


Report generated at 2008-01-20T12:13:38-05:00