summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/orm/src/Contract/RetrieveBehavior.php
blob: 884d0749218c4193906e3a346bdc82988d955a89 (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 RetrieveBehavior extends Behavior
{
    /**
     * Apply this behavior on the given model
     *
     * Called when the model is fetched from the database.
     *
     * @param Model $model
     */
    public function retrieve(Model $model);
}