GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Contact::getURIAttribute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace LBHurtado\Missive\Models;
4
5
use LBHurtado\Missive\Traits\HasOTP;
6
use LBHurtado\Missive\Traits\HasAirtime;
7
use LBHurtado\Missive\Classes\MobileHandle;
8
use LBHurtado\Missive\Traits\HasSchemalessAttributes;
9
10
class Contact extends MobileHandle
11
{
12
    use HasAirtime, HasOTP, HasSchemalessAttributes;
13
14
    protected $fillable = [
15
        'mobile',
16
        'handle',
17
        'uri',
18
    ];
19
20
    public $casts = [
21
        'extra_attributes' => 'array',
22
    ];
23
24
    protected function getTableIndex(): string
25
    {
26
        return 'contacts';
27
    }
28
29
    public function setURIAttribute($value)
30
    {
31
        $this->extra_attributes['uri'] = $value;
32
33
        return $this;
34
    }
35
36
    public function getURIAttribute(): string
37
    {
38
        return $this->extra_attributes['uri'];
39
    }
40
}
41