src/Core/Db/Expression/Condition.php
private function _addCondition($condition)
	{
		if($this->logicOperator === null && $this->invoked === false)
		{
			$this->conditionArray[] = array($condition);
			$this->invoked          = true;
		}
		elseif($this->logicOperator === null)
		{
			throw new \Exception('a logic operator method have to be invoked to continue add conditions');
		}
		else
		{
			$this->conditionArray[] = array($this->logicOperator => $condition);
			$this->logicOperator    = null;
		}
	}
private function _addCondition($condition)
	{
		if($this->logicOperator === null && $this->invoked === false)
		{
			$this->conditionArray[] = array($condition);
			$this->invoked          = true;
		}
		elseif($this->logicOperator === null)
		{
			throw new \Exception('a logic operator method have to be invoked to continue add conditions');
		}
		else
		{
			$this->conditionArray[] = array($this->logicOperator => $condition);
			$this->logicOperator    = null;
		}
	}
private function _addCondition ( $ condition ) { if ( $ this -> logicOperator === null && $ this -> invoked === false ) { $ this -> conditionArray [ ] = array ( $ condition ) ; $ this -> invoked = true ; } elseif ( $ this -> logicOperator === null ) { throw new \ Exception ( 'a logic operator method have to be invoked to continue add conditions' ) ; } else { $ this -> conditionArray [ ] = array ( $ this -> logicOperator => $ condition ) ; $ this -> logicOperator = null ; } }
This method fill the condition array in the expected format.

If no logic operator method was invoked after a condition method, it will
throw an exception. Otherwise, after the first call, a condition without
an logic operator will add to the condition array and at the others calls,
a condition with an logic operator will add to the condition array.

@param string $condition

@throws \Exception
This method fill the condition array in the expected format .