Kohana_Jam_Validator_Rule_Price::validate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 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
}