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

User::getHomeAddress()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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