Completed
Push — master ( 77bf97...70e8e5 )
by Avtandil
02:17
created

User   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 29
rs 10
c 0
b 0
f 0
wmc 5
lcom 0
cbo 1

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getName() 0 4 1
A getMail() 0 4 1
A getHomeAddress() 0 4 1
A getCalculatedField() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Tests\Unit\Http\Resources;
6
7
use Illuminate\Database\Eloquent\Model;
8
use Longman\LaravelLodash\Http\Resources\TransformableContract;
9
10
class User extends Model implements TransformableContract
11
{
12
    protected $guarded = [];
13
14
    public function getId(): int
15
    {
16
        return $this->id;
17
    }
18
19
    public function getName(): string
20
    {
21
        return $this->name;
22
    }
23
24
    public function getMail(): string
25
    {
26
        return $this->mail;
27
    }
28
29
    public function getHomeAddress(): string
30
    {
31
        return $this->home_address;
32
    }
33
34
    public function getCalculatedField(): int
35
    {
36
        return 7;
37
    }
38
}
39