| Total Complexity | 2 |
| Total Lines | 29 |
| 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('robots.table_names.robot_rows')); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * |
||
| 22 | * Generates an array from DB data, compatible with Robots constructor |
||
| 23 | * |
||
| 24 | * @return array |
||
| 25 | */ |
||
| 26 | public static function generateArray(): array |
||
| 37 | } |
||
| 38 | } |