public function setColumnAlignments(array $alignments)
    {
        $this->columnAlignments = array();

        foreach ($alignments as $column => $alignment) {
            $this->setColumnAlignment($column, $alignment);
        }

        return $this;
    }
public function setColumnAlignments(array $alignments)
    {
        $this->columnAlignments = array();

        foreach ($alignments as $column => $alignment) {
            $this->setColumnAlignment($column, $alignment);
        }

        return $this;
    }
public function setColumnAlignments ( array $ alignments ) { $ this -> columnAlignments = array ( ) ; foreach ( $ alignments as $ column => $ alignment ) { $ this -> setColumnAlignment ( $ column , $ alignment ) ; } return $ this ; }
Sets the alignments of the table columns.

@param int[] $alignments An array of {@link Alignment} constants indexed
by the 0-based column keys.

@return static The current instance.
Sets the alignments of the table columns .