| 1 | <?php |
||
| 7 | class Observer |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Check if the translation model is dirty. |
||
| 11 | * |
||
| 12 | * @param \RichanFongdasen\I18n\Eloquent\TranslationModel $model |
||
| 13 | * |
||
| 14 | * @return bool |
||
| 15 | */ |
||
| 16 | protected function isDirty(TranslationModel $model): bool |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Listening to any saved events. |
||
| 23 | * |
||
| 24 | * @param \RichanFongdasen\I18n\Contracts\TranslateableModel $model |
||
| 25 | * |
||
| 26 | * @return void |
||
| 27 | */ |
||
| 28 | public function saved(TranslateableModel $model): void |
||
| 38 | } |
||
| 39 |