| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait TableSyncable |
||
| 8 | { |
||
| 9 | public static $isTableSyncEnabled = true; |
||
| 10 | |||
| 11 | 14 | public static function bootTableSyncable() |
|
| 12 | { |
||
| 13 | 14 | if (static::$isTableSyncEnabled) { |
|
| 14 | 13 | static::observe(TableSyncObserver::class); |
|
| 15 | } |
||
| 16 | } |
||
| 17 | |||
| 18 | 10 | public function getTableSyncableAttributes(): array |
|
| 21 | } |
||
| 22 | |||
| 23 | 12 | public function classForSync(): string |
|
| 26 | } |
||
| 27 | |||
| 28 | 12 | public function exists(): bool |
|
| 33 |