absences_IncrementRecord   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 21
rs 10
ccs 0
cts 3
cp 0
wmc 1
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
getRight() 0 1 ?
A getQuantity() 0 4 1
1
<?php
2
/************************************************************************
3
 * OVIDENTIA http://www.ovidentia.org                                   *
4
 ************************************************************************
5
 * Copyright (c) 2003 by CANTICO ( http://www.cantico.fr )              *
6
 *                                                                      *
7
 * This file is part of Ovidentia.                                      *
8
 *                                                                      *
9
 * Ovidentia is free software; you can redistribute it and/or modify    *
10
 * it under the terms of the GNU General Public License as published by *
11
 * the Free Software Foundation; either version 2, or (at your option)  *
12
 * any later version.													*
13
 *																		*
14
 * This program is distributed in the hope that it will be useful, but  *
15
 * WITHOUT ANY WARRANTY; without even the implied warranty of			*
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.					*
17
 * See the  GNU General Public License for more details.				*
18
 *																		*
19
 * You should have received a copy of the GNU General Public License	*
20
 * along with this program; if not, write to the Free Software			*
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,*
22
 * USA.																	*
23
************************************************************************/
24
25
26
27
28
29
require_once dirname(__FILE__).'/record.class.php';
30
31
32
/**
33
 * @property float 	$quantity
34
 * @property int    $monthkey
35
 * @property string $createdOn
36
 *
37
 */
38
abstract class absences_IncrementRecord extends absences_Record
39
{
40
    /**
41
     * 
42
     * @return absences_Right
43
     */
44
    abstract public function getRight();
45
46
47
48
49
    /**
50
     * Get quantity
51
     * @return number
52
     */
53
    public function getQuantity()
54
    {
55
        return (float) $this->quantity;
56
    }
57
        
58
}