protected function calculateDimensions()
    {
        foreach ($this->getRows() as $x => $row) {
            foreach ($row as $y => $value) {
                $this->calculateDimensionsForCell($x, $y, $value);
            }
        }
        return $this;
    }
protected function calculateDimensions()
    {
        foreach ($this->getRows() as $x => $row) {
            foreach ($row as $y => $value) {
                $this->calculateDimensionsForCell($x, $y, $value);
            }
        }
        return $this;
    }
protected function calculateDimensions ( ) { foreach ( $ this -> getRows ( ) as $ x => $ row ) { foreach ( $ row as $ y => $ value ) { $ this -> calculateDimensionsForCell ( $ x , $ y , $ value ) ; } } return $ this ; }
Calculates the dimensions of the table

@return TextTable
Calculates the dimensions of the table