public function addOption($value, $text)
	{
		if (!is_scalar($value)) {
			throw new DataGridColumnStatusException('Option value has to be scalar');
		}

		$option = new Option($this, $value, $text);

		$this->options[] = $option;

		return $option;
	}
public function addOption($value, $text)
	{
		if (!is_scalar($value)) {
			throw new DataGridColumnStatusException('Option value has to be scalar');
		}

		$option = new Option($this, $value, $text);

		$this->options[] = $option;

		return $option;
	}
public function addOption ( $ value , $ text ) { if ( ! is_scalar ( $ value ) ) { throw new DataGridColumnStatusException ( 'Option value has to be scalar' ) ; } $ option = new Option ( $ this , $ value , $ text ) ; $ this -> options [ ] = $ option ; return $ option ; }
Add option to status select
@param mixed $value
@param string $text
@return Option
@throws DataGridColumnStatusException
Add option to status select