http://phing.info/

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.

Methods: 1 LOC: 51 Statements: 7

Source file Statements Methods Total coverage
Clause.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 (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
13
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
14
 * @version   $Id: Clause.php 219 2008-02-09 18:02:48Z doublecompile $
15
 */
16
/**
17
 * @see Xyster_Data_Clause
18
 */
19 1
require_once 'Xyster/Data/Clause.php';
20
/**
21
 * @see Xyster_Data_Sort
22
 */
23 1
require_once 'Xyster/Data/Sort.php';
24
/**
25
 * A sort clause
26
 *
27
 * @category  Xyster
28
 * @package   Xyster_Data
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_Data_Sort_Clause extends Xyster_Data_Clause
33
{
34
	/**
35
	 * @var Xyster_Type
36
	 */
37
	static private $_type;
38
39
	/**
40
	 * Creates a new Sort clause
41
	 *
42
	 * @param Xyster_Data_Symbol $symbol The symbol or clause to add to this one
43
	 */
44
	public function __construct( Xyster_Data_Symbol $symbol = null )
45
	{
46 68
		if ( !self::$_type instanceof Xyster_Type ) {
47 1
			self::$_type = new Xyster_Type('Xyster_Data_Sort');
48 1
		}
49 68
		parent::__construct(self::$_type, $symbol);
50
	}
51
}


Report generated at 2008-03-05T18:27:43-05:00