protected function _setColumns($value)
    {
        $columnMap = [
            1 => 12,
            2 => 6,
            3 => 4,
            4 => 3,
            6 => 2,
            12 => 1,
        ];
        if (!in_array($value, [1, 2, 3, 4, 6, 12])) {
            throw new InvalidArgumentException('Valid columns value must be one of [1, 2, 3, 4, 6, 12]');
        }

        $this->set('columnClass', sprintf('col-md-%d', $columnMap[$value]));

        return $value;
    }
protected function _setColumns($value)
    {
        $columnMap = [
            1 => 12,
            2 => 6,
            3 => 4,
            4 => 3,
            6 => 2,
            12 => 1,
        ];
        if (!in_array($value, [1, 2, 3, 4, 6, 12])) {
            throw new InvalidArgumentException('Valid columns value must be one of [1, 2, 3, 4, 6, 12]');
        }

        $this->set('columnClass', sprintf('col-md-%d', $columnMap[$value]));

        return $value;
    }
protected function _setColumns ( $ value ) { $ columnMap = [ 1 => 12 , 2 => 6 , 3 => 4 , 4 => 3 , 6 => 2 , 12 => 1 , ] ; if ( ! in_array ( $ value , [ 1 , 2 , 3 , 4 , 6 , 12 ] ) ) { throw new InvalidArgumentException ( 'Valid columns value must be one of [1, 2, 3, 4, 6, 12]' ) ; } $ this -> set ( 'columnClass' , sprintf ( 'col-md-%d' , $ columnMap [ $ value ] ) ) ; return $ value ; }
columns property setter

@param int $value A column count
@return int
@throws \InvalidArgumentException the column count is invalid
columns property setter