Library/Bullhorn/FastRest/Generator/ModelBuilder.php
private function buildChild() {
        $class = new Object\Index($this->getConfiguration());
        $class->setName(ucfirst($this->getTableName()));
        $class->setAbstract(false);
        $class->setExtends('GeneratedParent');

        $class->setNamespace(
            $this->getConfiguration()->getRootNamespace()
            . '\Models\\' . $this->getConfiguration()->getModelSubNamespace()
        );
        $class->addUse(
            $this->getConfiguration()->getRootNamespace()
            . '\Models\\' . $this->getConfiguration()->getModelSubNamespace()
            . '\Generated\\' . ucfirst($this->getTableName()) . ' as GeneratedParent'
        );
        $method = new Object\Method();
        $method->setDescription('This should set any defaults to the current object');
        $method->setName('loadDefaults');
        $method->setContent('//TODO');
        $method->setAccess('public');
        $method->setReturnType('void');
        $class->addMethod($method);

        return $class;
    }
private function buildChild() {
        $class = new Object\Index($this->getConfiguration());
        $class->setName(ucfirst($this->getTableName()));
        $class->setAbstract(false);
        $class->setExtends('GeneratedParent');

        $class->setNamespace(
            $this->getConfiguration()->getRootNamespace()
            . '\Models\\' . $this->getConfiguration()->getModelSubNamespace()
        );
        $class->addUse(
            $this->getConfiguration()->getRootNamespace()
            . '\Models\\' . $this->getConfiguration()->getModelSubNamespace()
            . '\Generated\\' . ucfirst($this->getTableName()) . ' as GeneratedParent'
        );
        $method = new Object\Method();
        $method->setDescription('This should set any defaults to the current object');
        $method->setName('loadDefaults');
        $method->setContent('//TODO');
        $method->setAccess('public');
        $method->setReturnType('void');
        $class->addMethod($method);

        return $class;
    }
private function buildChild ( ) { $ class = new Object \ Index ( $ this -> getConfiguration ( ) ) ; $ class -> setName ( ucfirst ( $ this -> getTableName ( ) ) ) ; $ class -> setAbstract ( false ) ; $ class -> setExtends ( 'GeneratedParent' ) ; $ class -> setNamespace ( $ this -> getConfiguration ( ) -> getRootNamespace ( ) . '\Models\\' . $ this -> getConfiguration ( ) -> getModelSubNamespace ( ) ) ; $ class -> addUse ( $ this -> getConfiguration ( ) -> getRootNamespace ( ) . '\Models\\' . $ this -> getConfiguration ( ) -> getModelSubNamespace ( ) . '\Generated\\' . ucfirst ( $ this -> getTableName ( ) ) . ' as GeneratedParent' ) ; $ method = new Object \ Method ( ) ; $ method -> setDescription ( 'This should set any defaults to the current object' ) ; $ method -> setName ( 'loadDefaults' ) ; $ method -> setContent ( '//TODO' ) ; $ method -> setAccess ( 'public' ) ; $ method -> setReturnType ( 'void' ) ; $ class -> addMethod ( $ method ) ; return $ class ; }
Builds the child buffer
@return Object\Index
Builds the child buffer