public function createModel($class, $id)
    {
        $this->model = new $class();

        if ($id) {
            $this->model->setId($id);
        }

        return $this;
    }
public function createModel($class, $id)
    {
        $this->model = new $class();

        if ($id) {
            $this->model->setId($id);
        }

        return $this;
    }
public function createModel ( $ class , $ id ) { $ this -> model = new $ class ( ) ; if ( $ id ) { $ this -> model -> setId ( $ id ) ; } return $ this ; }
Create the Paymill model

@param string $class
@param string $id
@return mixed
Create the Paymill model