src/Generators/Generator.php
protected function createClass()
        {
            $file = $this->getPath();

            if($this->files->exists($file)) {
                throw new PresenterExistsException();
            } else {
                return $this->files->put(
                    $file,
                    $this->stub->populateStub($this->getPopulatedData())
                );
            }
        }
protected function createClass()
        {
            $file = $this->getPath();

            if($this->files->exists($file)) {
                throw new PresenterExistsException();
            } else {
                return $this->files->put(
                    $file,
                    $this->stub->populateStub($this->getPopulatedData())
                );
            }
        }
protected function createClass ( ) { $ file = $ this -> getPath ( ) ; if ( $ this -> files -> exists ( $ file ) ) { throw new PresenterExistsException ( ) ; } else { return $ this -> files -> put ( $ file , $ this -> stub -> populateStub ( $ this -> getPopulatedData ( ) ) ) ; } }
Create the Presenter file

@return  bool
@throws  PresenterExistsException
Create the Presenter file