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