Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | abstract class Grantable extends Model |
||
15 | 83 | { |
|
16 | public function __construct(array $attributes = []) |
||
20 | } |
||
21 | |||
22 | abstract protected function getConfigTableName(): string; |
||
23 | 83 | ||
24 | public function getFillable() |
||
25 | { |
||
26 | 83 | return [ |
|
27 | 'secret_name', |
||
28 | 'display_name', |
||
29 | 'description' |
||
30 | ]; |
||
31 | } |
||
32 | 9 | ||
33 | protected function serializeDate(\DateTimeInterface $date): string |
||
34 | 9 | { |
|
35 | return Carbon::instance($date)->toDateTimeString(); |
||
36 | } |
||
37 | |||
38 | public function __toString() |
||
41 | } |
||
42 | } |
||
43 |