Library/Bullhorn/FastRest/Generator/ModelBuilder.php
private function buildVariableDefinitions() {
        foreach($this->getFields() as $field) {
            $variable = new Object\Variable();
            $variable->setName($field->getShortName());
            $variable->setAccess('protected');
            $variable->setAutoIncrementing($field->isAutoIncrementing());
            $variable->setDescription($field->getDescription());
            $variable->setLength($field->getLength());
            $variable->setNullable($field->isNullable());
            $variable->setPrimary($field->isPrimary());
            $variable->setType($field->getType());
            $this->getAbstractClass()->addVariable($variable);
        }
    }
private function buildVariableDefinitions() {
        foreach($this->getFields() as $field) {
            $variable = new Object\Variable();
            $variable->setName($field->getShortName());
            $variable->setAccess('protected');
            $variable->setAutoIncrementing($field->isAutoIncrementing());
            $variable->setDescription($field->getDescription());
            $variable->setLength($field->getLength());
            $variable->setNullable($field->isNullable());
            $variable->setPrimary($field->isPrimary());
            $variable->setType($field->getType());
            $this->getAbstractClass()->addVariable($variable);
        }
    }
private function buildVariableDefinitions ( ) { foreach ( $ this -> getFields ( ) as $ field ) { $ variable = new Object \ Variable ( ) ; $ variable -> setName ( $ field -> getShortName ( ) ) ; $ variable -> setAccess ( 'protected' ) ; $ variable -> setAutoIncrementing ( $ field -> isAutoIncrementing ( ) ) ; $ variable -> setDescription ( $ field -> getDescription ( ) ) ; $ variable -> setLength ( $ field -> getLength ( ) ) ; $ variable -> setNullable ( $ field -> isNullable ( ) ) ; $ variable -> setPrimary ( $ field -> isPrimary ( ) ) ; $ variable -> setType ( $ field -> getType ( ) ) ; $ this -> getAbstractClass ( ) -> addVariable ( $ variable ) ; } }
Builds the variable definitions
@return void
Builds the variable definitions