vendor/ipl/orm/src/Contract/PersistBehavior.php
raw| 1 | <?php |
| 2 | |
| 3 | namespace ipl\Orm\Contract; |
| 4 | |
| 5 | use ipl\Orm\Behavior; |
| 6 | use ipl\Orm\Model; |
| 7 | |
| 8 | interface PersistBehavior extends Behavior |
| 9 | { |
| 10 | /** |
| 11 | * Apply this behavior on the given model |
| 12 | * |
| 13 | * Called when the model is persisted in the database. |
| 14 | * |
| 15 | * @param Model $model |
| 16 | */ |
| 17 | public function persist(Model $model): void; |
| 18 | } |