Passed
Push — main ( 611005...3dcdf9 )
by Thierry
06:15
created

GuestOptions::casts()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Siak\Tontine\Model;
4
5
use Illuminate\Database\Eloquent\Relations\Pivot;
6
 
7
class GuestOptions extends Pivot
8
{
9
    /**
10
     * The table associated with the model.
11
     *
12
     * @var string
13
     */
14
    protected $table = 'guest_options';
15
16
    /**
17
     * The attributes that are mass assignable.
18
     *
19
     * @var array
20
     */
21
    protected $fillable = [
22
        'access',
23
    ];
24
25
    /**
26
     * Get the attributes that should be cast.
27
     *
28
     * @return array<string, string>
29
     */
30
    protected function casts(): array
31
    {
32
        return [
33
            'access' => 'array',
34
        ];
35
    }
36
}
37