public function fit($maxTotalWidth, $nbColumns, Formatter $formatter)
    {
        $this->resetState($maxTotalWidth, $nbColumns);
        $this->initRows($formatter);

        // If the cells fit within the max width we're good
        if ($this->totalWidth <= $maxTotalWidth) {
            return;
        }

        $this->wrapColumns($formatter);
    }
public function fit($maxTotalWidth, $nbColumns, Formatter $formatter)
    {
        $this->resetState($maxTotalWidth, $nbColumns);
        $this->initRows($formatter);

        // If the cells fit within the max width we're good
        if ($this->totalWidth <= $maxTotalWidth) {
            return;
        }

        $this->wrapColumns($formatter);
    }
public function fit ( $ maxTotalWidth , $ nbColumns , Formatter $ formatter ) { $ this -> resetState ( $ maxTotalWidth , $ nbColumns ) ; $ this -> initRows ( $ formatter ) ; // If the cells fit within the max width we're good if ( $ this -> totalWidth <= $ maxTotalWidth ) { return ; } $ this -> wrapColumns ( $ formatter ) ; }
Fits the added cells into the given maximum total width with the given
number of columns.

@param int       $maxTotalWidth The maximum total width of the columns.
@param int       $nbColumns     The number of columns to use.
@param Formatter $formatter     The formatter used to remove style tags.
Fits the added cells into the given maximum total width with the given number of columns .