Calendar_Second   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 2
dl 0
loc 43
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A fetch() 0 2 1
A fetchAll() 0 2 1
A size() 0 2 1
A build() 0 2 1
1
<?php
2
3
/* vim: set expandtab tabstop=4 shiftwidth=4: */
4
5
/**
6
 * Contains the Calendar_Second class.
7
 *
8
 * PHP versions 4 and 5
9
 *
10
 * LICENSE: Redistribution and use in source and binary forms, with or without
11
 * modification, are permitted provided that the following conditions are met:
12
 * 1. Redistributions of source code must retain the above copyright
13
 *    notice, this list of conditions and the following disclaimer.
14
 * 2. Redistributions in binary form must reproduce the above copyright
15
 *    notice, this list of conditions and the following disclaimer in the
16
 *    documentation and/or other materials provided with the distribution.
17
 * 3. The name of the author may not be used to endorse or promote products
18
 *    derived from this software without specific prior written permission.
19
 *
20
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
21
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
22
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23
 * IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
24
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
 *
31
 * @category  Date and Time
32
 *
33
 * @author    Harry Fuecks <[email protected]>
34
 * @copyright 2003-2007 Harry Fuecks
35
 * @license   http://www.debian.org/misc/bsd.license  BSD License (3 Clause)
36
 *
37
 * @link      http://pear.php.net/package/Calendar
38
 */
39
40
/**
41
 * Allows Calendar include path to be redefined.
42
 *
43
 * @ignore
44
 */
45
if (!defined('CALENDAR_ROOT')) {
46
    define('CALENDAR_ROOT', 'Calendar/');
47
}
48
49
/**
50
 * Load Calendar base class.
51
 */
52
require_once CALENDAR_ROOT . 'Calendar.php';
53
54
/**
55
 * Represents a Second<br>
56
 * <b>Note:</b> Seconds do not build other objects
57
 * so related methods are overridden to return NULL.
58
 *
59
 * @category  Date and Time
60
 *
61
 * @author    Harry Fuecks <[email protected]>
62
 * @copyright 2003-2007 Harry Fuecks
63
 * @license   http://www.debian.org/misc/bsd.license  BSD License (3 Clause)
64
 *
65
 * @link      http://pear.php.net/package/Calendar
66
 */
67
class Calendar_Second extends Calendar
68
{
69
    /**
70
     * Constructs Second.
71
     *
72
     * @param int $y year e.g. 2003
73
     * @param int $m month e.g. 5
74
     * @param int $d day e.g. 11
75
     * @param int $h hour e.g. 13
76
     * @param int $i minute e.g. 31
77
     * @param int $s second e.g. 45
78
     */
79
    public function __construct($y, $m, $d, $h, $i, $s)
80
    {
81
        parent::__construct($y, $m, $d, $h, $i, $s);
82
    }
83
84
    /**
85
     * Overwrite build.
86
     */
87
    public function build()
88
    {
89
    }
90
91
    /**
92
     * Overwrite fetch.
93
     */
94
    public function fetch()
95
    {
96
    }
97
98
    /**
99
     * Overwrite fetchAll.
100
     */
101
    public function fetchAll()
102
    {
103
    }
104
105
    /**
106
     * Overwrite size.
107
     */
108
    public function size()
109
    {
110
    }
111
}
112