Library/Bullhorn/FastRest/Generator/ControllerBuilder.php
private function build() {
        $this->getObject()->addUse('Bullhorn\FastRest\Api\Models\ApiInterface as ModelInterface');
        $this->getObject()->setName(ucfirst(strtolower($this->getClassName())) . 'Controller');
        $this->getObject()->setNamespace($this->getConfiguration()->getRootNamespace() . '\Controllers');
        $this->getObject()->setExtends('ControllerBase');
        $this->buildFactory();
        $this->buildIndexAction();
        $this->buildShowAction();
        $this->buildCreateAction();
        $this->buildUpdateAction();
        $this->buildDeleteAction();
        $this->buildDocumentation();
    }
private function build() {
        $this->getObject()->addUse('Bullhorn\FastRest\Api\Models\ApiInterface as ModelInterface');
        $this->getObject()->setName(ucfirst(strtolower($this->getClassName())) . 'Controller');
        $this->getObject()->setNamespace($this->getConfiguration()->getRootNamespace() . '\Controllers');
        $this->getObject()->setExtends('ControllerBase');
        $this->buildFactory();
        $this->buildIndexAction();
        $this->buildShowAction();
        $this->buildCreateAction();
        $this->buildUpdateAction();
        $this->buildDeleteAction();
        $this->buildDocumentation();
    }
private function build ( ) { $ this -> getObject ( ) -> addUse ( 'Bullhorn\FastRest\Api\Models\ApiInterface as ModelInterface' ) ; $ this -> getObject ( ) -> setName ( ucfirst ( strtolower ( $ this -> getClassName ( ) ) ) . 'Controller' ) ; $ this -> getObject ( ) -> setNamespace ( $ this -> getConfiguration ( ) -> getRootNamespace ( ) . '\Controllers' ) ; $ this -> getObject ( ) -> setExtends ( 'ControllerBase' ) ; $ this -> buildFactory ( ) ; $ this -> buildIndexAction ( ) ; $ this -> buildShowAction ( ) ; $ this -> buildCreateAction ( ) ; $ this -> buildUpdateAction ( ) ; $ this -> buildDeleteAction ( ) ; $ this -> buildDocumentation ( ) ; }
Builds the class
@return void
Builds the class