src/TerminalObject/Basic/Columns.php
protected function setColumnCountViaArray($items)
    {
        $counts = array_map(function ($arr) {
            return count($arr);
        }, $items);

        $this->column_count = max($counts);
    }
protected function setColumnCountViaArray($items)
    {
        $counts = array_map(function ($arr) {
            return count($arr);
        }, $items);

        $this->column_count = max($counts);
    }
protected function setColumnCountViaArray ( $ items ) { $ counts = array_map ( function ( $ arr ) { return count ( $ arr ) ; } , $ items ) ; $ this -> column_count = max ( $ counts ) ; }
Set the count property via an array

@param array $items
Set the count property via an array