Sleimanx2\Plastic\Mappings\Creator::populateStub PHP Method

populateStub() protected method

Populate the place-holders in the mapping stub.
protected populateStub ( string $model, string $stub ) : string
$model string
$stub string
return string
    protected function populateStub($model, $stub)
    {
        $stub = str_replace('DummyClass', $this->getClassName($model), $stub);
        $stub = str_replace('DummyModel', $model, $stub);
        return $stub;
    }