http://phing.info/

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.

Methods: 1 LOC: 44 Statements: 7
Legend: executednot executeddead code
Source file Statements Methods Total coverage
FieldClause.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_Data
12
 * @copyright Copyright LibreWorks, LLC (http://libreworks.net)
13
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
14
 * @version   $Id: FieldClause.php 418 2010-10-18 21:40:08Z jonathanhawk $
15
 */
16
namespace Xyster\Data\Symbol;
17
/**
18
 * A field clause
19
 *
20
 * @category  Xyster
21
 * @package   Xyster_Data
22
 * @copyright Copyright LibreWorks, LLC (http://libreworks.net)
23
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
24
 */
25
class FieldClause extends AbstractClause
26 1
{
27
    /**
28
     * @var Xyster_Type
29
     */
30
    static private $_type;
31
32
    /**
33
     * Creates a new Sort clause
34
     *
35
     * @param Xyster_Data_Symbol $symbol The symbol or clause to add to this one
36
     */
37
    public function __construct( ISymbol $symbol = null )
38
    {
39 13
        if ( !self::$_type instanceof \Xyster\Type\Type ) {
40 1
            self::$_type = new \Xyster\Type\Type('\Xyster\Data\Symbol\Field');
41 1
        }
42 13
        parent::__construct(self::$_type, $symbol);
43
    }
44 1
}


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