Completed
Push — master ( 65052d...e6fef9 )
by Dmitry
03:42
created

Money::relations()   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
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace hiqdev\billing\hiapi\models;
4
5
use hiapi\query\types\IntegerAttribute;
6
use hiapi\query\types\StringAttribute;
7
8
/**
9
 * Class Quantity
10
 *
11
 * @author Dmytro Naumenko <[email protected]>
12
 */
13
class Money extends AbstractModel
14
{
15
    public function attributes()
16
    {
17
        return [
18
            'amount' => IntegerAttribute::class,
19
            'currency' => StringAttribute::class, // todo: regexp validatior
20
        ];
21
    }
22
23
    public function relations()
24
    {
25
        return [];
26
    }
27
}
28