Kodeine\Metable\Metable::getModelStub PHP Method

getModelStub() protected method

protected getModelStub ( )
    protected function getModelStub()
    {
        // get new meta model instance
        $model = new \Kodeine\Metable\MetaData();
        $model->setTable($this->metaTable);
        // model fill with attributes.
        if (func_num_args() > 0) {
            array_filter(func_get_args(), array($model, 'fill'));
        }
        return $model;
    }