Code Duplication    Length = 18-18 lines in 2 locations

src/models/Customer.php 1 location

@@ 8-25 (lines=18) @@
5
use hiapi\query\attributes\IntegerAttribute;
6
use hiapi\query\attributes\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

src/models/Plan.php 1 location

@@ 8-25 (lines=18) @@
5
use hiapi\query\attributes\IntegerAttribute;
6
use hiapi\query\attributes\StringAttribute;
7
8
class Plan extends AbstractModel
9
{
10
    public function attributes()
11
    {
12
        return [
13
            'id'    => IntegerAttribute::class,
14
            'name'  => StringAttribute::class,
15
        ];
16
    }
17
18
    public function relations()
19
    {
20
        return [
21
            'type' => Type::class,
22
            'seller' => Customer::class,
23
        ];
24
    }
25
}
26