db
1<?php
2
3namespace Upside\Db\SQL;
4
5class Subquery
6{
7protected SelectStatement $select;
8
9public function __clone()
10{
11$this->select = clone $this->select;
12}
13
14public function from(array|string $tables): SelectStatement
15{
16return $this->select = new SelectStatement($tables);
17}
18
19public function get_sql_statement(): SQLStatement
20{
21return $this->select->get_sql_statement();
22}
23}
24