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

Customer::relations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

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 6
ccs 0
cts 6
cp 0
rs 9.4285
cc 1
eloc 3
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