MediaWiki  master
Subquery.php
Go to the documentation of this file.
1 <?php
25 namespace Wikimedia\Rdbms;
26 
27 class Subquery {
29  private $sql;
30 
34  public function __construct( $sql ) {
35  $this->sql = $sql;
36  }
37 
41  public function __toString() {
42  return '(' . $this->sql . ')';
43  }
44 }
Wikimedia\Rdbms\Subquery\$sql
string $sql
Definition: Subquery.php:29
Wikimedia\Rdbms
Definition: ChronologyProtector.php:24
Wikimedia\Rdbms\Subquery\__construct
__construct( $sql)
Definition: Subquery.php:34
Wikimedia\Rdbms\Subquery\__toString
__toString()
Definition: Subquery.php:41
Wikimedia\Rdbms\Subquery
Definition: Subquery.php:27