http://phing.info/

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.

Methods: 5 LOC: 89 Statements: 6

Source file Statements Methods Total coverage
Aggregate.php 100.0% 100.0% 100.0%
 
1
<?php
2
/**
3
 * Xyster Framework
4
 *
5
 * LICENSE
6
 *
7
 * This source file is subject to the new BSD license that is bundled
8
 * with this package in the file LICENSE.txt.
9
 * It is also available through the world-wide-web at this URL:
10
 * http://www.opensource.org/licenses/bsd-license.php
11
 * If you did not receive a copy of the license and are unable to
12
 * obtain it through the world-wide-web, please send an email
13
 * to xyster@devweblog.org so we can send you a copy immediately.
14
 *
15
 * @category  Xyster
16
 * @package   Xyster_Data
17
 * @copyright Copyright (c) 2007 Irrational Logic (http://devweblog.org)
18
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
19
 */
20
/**
21
 * @see Xyster_Enum
22
 */
23 1
require_once 'Xyster/Enum.php';
24
/**
25
 * Aggregate function enumerated type
26
 *
27
 * @category  Xyster
28
 * @package   Xyster_Data
29
 * @copyright Copyright (c) 2007 Irrational Logic (http://devweblog.org)
30
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
31
 */
32
class Xyster_Data_Aggregate extends Xyster_Enum
33
{
34
	const Average = "AVG";
35
	const Count = "COUNT";
36
	const Maximum = "MAX";
37
	const Minimum = "MIN";
38
	const Sum = "SUM";
39
40
	/**
41
	 * Uses the Average function
42
	 *
43
	 * @return Xyster_Data_Aggregate
44
	 */
45
	static public function Average()
46
	{
47 4
	   return Xyster_Enum::_factory();
48
	}
49
50
	/**
51
	 * Uses the Count function
52
	 *
53
	 * @return Xyster_Data_Aggregate
54
	 */
55
	static public function Count()
56
    {
57 11
        return Xyster_Enum::_factory();
58
    }
59
60
	/**
61
	 * Uses the Maximum function
62
	 *
63
	 * @return Xyster_Data_Aggregate
64
	 */
65
	static public function Maximum()
66
	{
67 8
	   return Xyster_Enum::_factory();
68
	}
69
70
    /**
71
	 * Uses the Minimum function
72
	 *
73
	 * @return Xyster_Data_Aggregate
74
	 */
75
	static public function Minimum()
76
	{
77 4
	   return Xyster_Enum::_factory();
78
	}
79
80
	/**
81
	 * Uses the Sum function
82
	 *
83
	 * @return Xyster_Data_Aggregate
84
	 */
85
	static public function Sum()
86
	{
87 4
	   return Xyster_Enum::_factory();
88
	}
89
}


Report generated at 2007-11-05T09:09:01-05:00