/**
  * Get stub template for generated file.
  *
  * @return string
  */
 public function getStub()
 {
     $stub = new Stub($this->stub . '.stub', $this->getReplacements());
     $stub->setBasePath(__DIR__ . '/Stubs/');
     return $stub->render();
 }