http://phing.info/

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.

Methods: 5 LOC: 84 Statements: 7
Legend: executednot executeddead code
Source file Statements Methods Total coverage
Aggregate.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
 */
15
namespace Xyster\Data\Symbol;
16
17
use Xyster\Enum\Enum;
18
19
/**
20
 * Aggregate function enumerated type
21
 *
22
 * @category  Xyster
23
 * @package   Xyster_Data
24
 * @copyright Copyright LibreWorks, LLC (http://libreworks.net)
25
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
26
 */
27
class Aggregate extends Enum
28 1
{
29
    const Average = "AVG";
30
    const Count = "COUNT";
31
    const Maximum = "MAX";
32
    const Minimum = "MIN";
33
    const Sum = "SUM";
34
35
    /**
36
     * Uses the Average function
37
     *
38
     * @return Aggregate
39
     */
40
    static public function Average()
41
    {
42 4
        return Enum::_factory();
43
    }
44
45
    /**
46
     * Uses the Count function
47
     *
48
     * @return Aggregate
49
     */
50
    static public function Count()
51
    {
52 8
        return Enum::_factory();
53
    }
54
55
    /**
56
     * Uses the Maximum function
57
     *
58
     * @return Aggregate
59
     */
60
    static public function Maximum()
61
    {
62 5
        return Enum::_factory();
63
    }
64
65
    /**
66
     * Uses the Minimum function
67
     *
68
     * @return Aggregate
69
     */
70
    static public function Minimum()
71
    {
72 4
        return Enum::_factory();
73
    }
74
75
    /**
76
     * Uses the Sum function
77
     *
78
     * @return Aggregate
79
     */
80
    static public function Sum()
81
    {
82 4
        return Enum::_factory();
83
    }
84 1
}


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