/** @return PSSelect */ private function addParam($type, $param) { if (is_array($param)) { foreach ($param as $key => $value) { if (is_inumeric($key)) { $this->addParam($type, $value); } else { $this->setParam($type, $key, $value); } } return $this; } if ($param instanceof QueryParam) { return $this->registerQueryParam($type, $param); } if (PsCheck::isValidQueryPlainExpression($param)) { return $this->registerQueryParam($type, self::plainParam($param)); } return $this; }