Kohana_Jam_Validator_Rule_Price   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 4 1
1
<?php defined('SYSPATH') OR die('No direct script access.');
2
/**
3
 * Jam Validatior Rule
4
 *
5
 * @package    Openbuildings\Jam
6
 * @author     Ivan Kerin <[email protected]>
7
 * @copyright  (c) 2013 OpenBuildings Ltd.
8
 * @license    http://spdx.org/licenses/BSD-3-Clause
9
 */
10
class Kohana_Jam_Validator_Rule_Price extends Jam_Validator_Rule_Numeric {
11
12 1
	public function validate(Jam_Validated $model, $attribute, $value)
13
	{
14 1
		parent::validate($model, $attribute, $value->amount());
15
	}
16
}