Library/Bullhorn/FastRest/Generator/Object/Index.php
public function addConstant($name, $value) {
        $constants = $this->getConstants();
        if(array_key_exists($name, $constants)) {
            throw new \Exception('Constant Already Exists: ' . $name);
        }
        $constants[$name] = $value;
        asort($constants);
        $this->setConstants($constants);
    }
public function addConstant($name, $value) {
        $constants = $this->getConstants();
        if(array_key_exists($name, $constants)) {
            throw new \Exception('Constant Already Exists: ' . $name);
        }
        $constants[$name] = $value;
        asort($constants);
        $this->setConstants($constants);
    }
public function addConstant ( $ name , $ value ) { $ constants = $ this -> getConstants ( ) ; if ( array_key_exists ( $ name , $ constants ) ) { throw new \ Exception ( 'Constant Already Exists: ' . $ name ) ; } $ constants [ $ name ] = $ value ; asort ( $ constants ) ; $ this -> setConstants ( $ constants ) ; }
Adds a new class constant

@param string $name
@param string $value

@return void
@throws \Exception
Adds a new class constant