protected function addEnumMethods(&$script)
    {
        foreach ($this->getTable()->getColumns() as $col) {
            /* @var $col Column */
            if ($col->isEnumType()) {
                $script .= "
    /**
     * Gets the SQL value for " . $col->getPhpName() . " ENUM value
     *
     * @param  string \$enumVal ENUM value to get SQL value for
     * @return int SQL value
     */
    public static function get{$col->getPhpName()}SqlValue(\$enumVal)
    {
        return {$this->getPeerClassname()}::getSqlValueForEnum({$this->getColumnConstant($col)}, \$enumVal);
    }
";
            }
        }
    }
protected function addEnumMethods(&$script)
    {
        foreach ($this->getTable()->getColumns() as $col) {
            /* @var $col Column */
            if ($col->isEnumType()) {
                $script .= "
    /**
     * Gets the SQL value for " . $col->getPhpName() . " ENUM value
     *
     * @param  string \$enumVal ENUM value to get SQL value for
     * @return int SQL value
     */
    public static function get{$col->getPhpName()}SqlValue(\$enumVal)
    {
        return {$this->getPeerClassname()}::getSqlValueForEnum({$this->getColumnConstant($col)}, \$enumVal);
    }
";
            }
        }
    }
protected function addEnumMethods ( & $ script ) { foreach ( $ this -> getTable ( ) -> getColumns ( ) as $ col ) { /* @var $col Column */ if ( $ col -> isEnumType ( ) ) { $ script .= "
    /**
     * Gets the SQL value for " . $ col -> getPhpName ( ) . " ENUM value
     *
     * @param  string \$enumVal ENUM value to get SQL value for
     * @return int SQL value
     */
    public static function get{$col->getPhpName()}SqlValue(\$enumVal)
    {
        return {$this->getPeerClassname()}::getSqlValueForEnum({$this->getColumnConstant($col)}, \$enumVal);
    }
" ; } } }
Adds methods for ENUM columns.

@param string &$script The script will be modified in this method.
Adds methods for ENUM columns .