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

Customer::getEntity()   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 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
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
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