summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/orm/src/Contract/PersistBehavior.php
blob: a6db05dd292b4d09c09aafa7d17f803c101083a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

namespace ipl\Orm\Contract;

use ipl\Orm\Behavior;
use ipl\Orm\Model;

interface PersistBehavior extends Behavior
{
    /**
     * Apply this behavior on the given model
     *
     * Called when the model is persisted in the database.
     *
     * @param Model $model
     */
    public function persist(Model $model);
}