| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class ApiLog extends Model |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @inheritDoc |
||
| 25 | */ |
||
| 26 | protected $guarded = []; |
||
| 27 | |||
| 28 | public function __construct(array $attributes = []) |
||
| 29 | { |
||
| 30 | $config = Helper::getConfig(); |
||
| 31 | |||
| 32 | isset($this->connection) || $this->setConnection($config['database_connection']); |
||
| 33 | isset($this->table) || $this->setTable($config['table_name']); |
||
| 34 | |||
| 35 | parent::__construct($attributes); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @inheritDoc |
||
| 40 | */ |
||
| 41 | protected static function boot() |
||
| 48 | }); |
||
| 49 | } |
||
| 51 |