public function addColumnName($columnName)
    {
        if (!is_string($columnName) || (strlen($columnName) <= 0)) {
            throw SchemaException::invalidIndexColumnName($this->getName());
        }

        $this->columnNames[] = $columnName;
    }
public function addColumnName($columnName)
    {
        if (!is_string($columnName) || (strlen($columnName) <= 0)) {
            throw SchemaException::invalidIndexColumnName($this->getName());
        }

        $this->columnNames[] = $columnName;
    }
public function addColumnName ( $ columnName ) { if ( ! is_string ( $ columnName ) || ( strlen ( $ columnName ) <= 0 ) ) { throw SchemaException :: invalidIndexColumnName ( $ this -> getName ( ) ) ; } $ this -> columnNames [ ] = $ columnName ; }
Adds a column name to the index.

@param string $columnName The column name to add.

@throws \Fridge\DBAL\Exception\SchemaException If the column name is not a valid string.
Adds a column name to the index .