Completed
Push — master ( 05f0c6...d5b4df )
by Dmitry
03:21
created

Customer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 18
ccs 0
cts 8
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A attributes() 0 8 1
A relations() 0 6 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
class Customer extends AbstractModel
9
{
10
    public function attributes()
11
    {
12
        return [
13
            'id' => IntegerAttribute::class,
14
            'login' => StringAttribute::class,
15
            'type' => StringAttribute::class
16
        ];
17
    }
18
19
    public function relations()
20
    {
21
        return [
22
            'seller' => self::class
23
        ];
24
    }
25
}
26