Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | abstract class Grantable extends Model |
||
14 | { |
||
15 | protected $fillable = [ |
||
16 | 'secret_name', |
||
17 | 'display_name', |
||
18 | 'description' |
||
19 | ]; |
||
20 | |||
21 | 61 | public function __construct(array $attributes = []) |
|
22 | { |
||
23 | 61 | $this->setTable($this->getConfigTableName()); |
|
24 | 61 | parent::__construct($attributes); |
|
25 | 61 | } |
|
26 | |||
27 | abstract protected function getConfigTableName(): string; |
||
28 | |||
29 | 2 | public function __toString() |
|
32 | } |
||
33 | } |
||
34 |