Value::attributes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

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 9
ccs 0
cts 9
cp 0
rs 9.9666
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Finance module for HiPanel
4
 *
5
 * @link      https://github.com/hiqdev/hipanel-module-finance
6
 * @package   hipanel-module-finance
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2019, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hipanel\modules\finance\models;
12
13
use hiqdev\hiart\ActiveRecord;
14
15
/**
16
 * Value.
17
 * API returns this object as result of billing cost calculation.
18
 *
19
 * @property string $currency
20
 * @property string $value
21
 * @property string $price
22
 * @property string $discounted_price
23
 */
24
class Value extends ActiveRecord
25
{
26
    public function attributes()
27
    {
28
        return [
29
            'currency',
30
            'value',
31
            'price',
32
            'discounted_price',
33
        ];
34
    }
35
}
36