Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class RobotsRow extends Model |
||
9 | { |
||
10 | protected $fillable = ['action', 'type']; |
||
11 | |||
12 | protected $guarded = ['id']; |
||
13 | |||
14 | public function __construct(array $attributes = []) |
||
15 | { |
||
16 | parent::__construct($attributes); |
||
17 | $this->setTable(config('laravel-robots.table_names.robot_rows')); |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * Generates an array from DB data, compatible with Robots constructor. |
||
22 | * |
||
23 | * @return array |
||
24 | */ |
||
25 | public static function generateArray(): array |
||
33 | ]; |
||
34 | } |
||
36 |