withDirection($item[1] ?? OrderExpression::ASC); } if (is_string($item)) { return OrderExpression::fromString($item); } throw new RuntimeException("Bad order item."); }, $this->params['orderBy'] ?? [] ); } /** * Get WHERE clause. */ public function getWhere(): ?WhereClause { $whereClause = $this->params['whereClause'] ?? null; if ($whereClause === null || $whereClause === []) { return null; } return WhereClause::fromRaw($whereClause); } private static function validateRawParamsSelecting(array $params): void { } }