MediaWiki master
Subquery.php
Go to the documentation of this file.
1<?php
21namespace Wikimedia\Rdbms;
22
23use Stringable;
24
28class Subquery implements Stringable {
30 private $sql;
31
35 public function __construct( $sql ) {
36 $this->sql = $sql;
37 }
38
42 public function __toString() {
43 return '(' . $this->sql . ')';
44 }
45}