Completed
Push — master ( 3fd094...93574e )
by Dmitry
04:53
created

TemplatePrice   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 6 1
1
<?php
2
3
namespace hipanel\modules\finance\models;
4
5
use hipanel\base\ModelTrait;
6
7
/**
8
 * Class TemplatePrice
9
 *
10
 * @property int[] $subprices
11
 *
12
 * @author Dmytro Naumenko <[email protected]>
13
 */
14
class TemplatePrice extends Price
15
{
16
    use ModelTrait;
17
18
    public function rules()
19
    {
20
        return array_merge(parent::rules(), [
21
            [['subprices'], 'each', 'rule' => ['number']]
22
        ]);
23
    }
24
}
25