public function __construct(array $aConditions) { $this->aConditions = array(); foreach ($aConditions as $sEntity => $value) { $this->aConditions[] = WhereClauseFactory::build($sEntity, $value); } }
public function having($entity, $value) { $this->havings[] = WhereClauseFactory::build($entity, $value); return $this; }
public function where($entity, $value) { $this->wheres[] = WhereClauseFactory::build($entity, $value); return $this; }