public setColumns ( $value = 1 ) : |
||
$value | int | |
return |
public function setColumns($value = 1)
{
if ($value > 16 || $value < 1) {
throw new \Exception('Number of columns should be 1-16');
}
$this->columns = $value;
return $this;
}
/** * @expectedException \Exception * expectedExceptionMessage Number of columns should be 1-16 */ public function testColumnsException() { $object = new RichText(); $object->setColumns(1000); }