public function getColumnAlignments($nbColumns)
    {
        return array_slice(array_replace(
            array_fill(0, $nbColumns, $this->defaultColumnAlignment),
            $this->columnAlignments
        ), 0, $nbColumns);
    }
public function getColumnAlignments($nbColumns)
    {
        return array_slice(array_replace(
            array_fill(0, $nbColumns, $this->defaultColumnAlignment),
            $this->columnAlignments
        ), 0, $nbColumns);
    }
public function getColumnAlignments ( $ nbColumns ) { return array_slice ( array_replace ( array_fill ( 0 , $ nbColumns , $ this -> defaultColumnAlignment ) , $ this -> columnAlignments ) , 0 , $ nbColumns ) ; }
Returns the alignments of the table columns.

@param int $nbColumns The number of alignments to return.

@return int[] An array of {@link Alignment} constants indexed by the
0-based column keys.
Returns the alignments of the table columns .