original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: columns property setter
  
  @param int $value A column count
  @return int
  @throws \InvalidArgumentException the column count is invalid
docstring_tokens: columns property setter