public function getPhpDefaultValue()
    {
        if ($this->defaultValue === null) {
            return null;
        }

        if ($this->defaultValue->isExpression()) {
            throw new EngineException("Cannot get PHP version of default value for default value EXPRESSION.");
        }

        if ($this->propelType === PropelTypes::BOOLEAN || $this->propelType === PropelTypes::BOOLEAN_EMU) {
            return $this->booleanValue($this->defaultValue->getValue());
        }

        if (PropelTypes::PHP_ARRAY === $this->propelType) {
            return $this->getDefaultValueForArray($this->defaultValue->getValue());
        }

        return $this->defaultValue->getValue();
    }
public function getPhpDefaultValue()
    {
        if ($this->defaultValue === null) {
            return null;
        }

        if ($this->defaultValue->isExpression()) {
            throw new EngineException("Cannot get PHP version of default value for default value EXPRESSION.");
        }

        if ($this->propelType === PropelTypes::BOOLEAN || $this->propelType === PropelTypes::BOOLEAN_EMU) {
            return $this->booleanValue($this->defaultValue->getValue());
        }

        if (PropelTypes::PHP_ARRAY === $this->propelType) {
            return $this->getDefaultValueForArray($this->defaultValue->getValue());
        }

        return $this->defaultValue->getValue();
    }
public function getPhpDefaultValue ( ) { if ( $ this -> defaultValue === null ) { return null ; } if ( $ this -> defaultValue -> isExpression ( ) ) { throw new EngineException ( "Cannot get PHP version of default value for default value EXPRESSION." ) ; } if ( $ this -> propelType === PropelTypes :: BOOLEAN || $ this -> propelType === PropelTypes :: BOOLEAN_EMU ) { return $ this -> booleanValue ( $ this -> defaultValue -> getValue ( ) ) ; } if ( PropelTypes :: PHP_ARRAY === $ this -> propelType ) { return $ this -> getDefaultValueForArray ( $ this -> defaultValue -> getValue ( ) ) ; } return $ this -> defaultValue -> getValue ( ) ; }
Gets the default value, type-casted for use in PHP OM.

@return mixed
@see        getDefaultValue()
@throws EngineException
Gets the default value type - casted for use in PHP OM .