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

Money   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 15
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A attributes() 0 7 1
A relations() 0 4 1
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