public function andOnCondition($condition, $params = []) { if ($this->on === null) { $this->on = $condition; } else { $this->on = ['and', $this->on, $condition]; } $this->addParams($params); return $this; }