| 1 | <?php |
||
| 19 | class Docs extends Model |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $table = 'docs'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $casts = [ |
||
| 30 | 'importer_config' => 'collection', |
||
| 31 | ]; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return HasMany |
||
| 35 | */ |
||
| 36 | public function pages(): HasMany |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param DocsConnectionConfigInterface|array $config |
||
| 43 | */ |
||
| 44 | public function setImporterConfigAttribute($config) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $data |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | public function getImporterConfigAttribute(string $data): array |
||
| 63 | } |
||
| 64 |