Completed
Push — master ( 871cd8...ab1e03 )
by Kirill
03:44
created

LocalDeliveryCost::getYmlBody()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
namespace pastuhov\ymlcatalog\models;
3
4
/**
5
 * Class LocalDeliveryCost
6
 * 
7
 * @package pastuhov\ymlcatalog\models
8
 * @deprecated
9
 */
10
class LocalDeliveryCost extends BaseModel
11
{
12
    /**
13
     * @inheritdoc
14
     */
15
    public static $tag = 'local_delivery_cost';
16
17
    public $value;
18
19
    /**
20
     * @inheritdoc
21
     */
22
    public function rules()
23
    {
24
        return [
25
            [
26
                ['value'],
27
                'integer',
28
            ],
29
        ];
30
    }
31
32
    /**
33
     * @inheritdoc
34
     */
35
    protected function getYmlBody()
36
    {
37
        return $this->value;
38
    }
39
}
40