Merge "Convert Special:DeletedContributions to use OOUI."
[lhc/web/wiklou.git] / includes / libs / rdbms / encasing / LikeMatch.php
1 <?php
2 /**
3 * Used by Database::buildLike() to represent characters that have special
4 * meaning in SQL LIKE clauses and thus need no escaping. Don't instantiate it
5 * manually, use Database::anyChar() and anyString() instead.
6 */
7 class LikeMatch {
8 /** @var string */
9 private $str;
10
11 /**
12 * Store a string into a LikeMatch marker object.
13 *
14 * @param string $s
15 */
16 public function __construct( $s ) {
17 $this->str = $s;
18 }
19
20 /**
21 * Return the original stored string.
22 *
23 * @return string
24 */
25 public function toString() {
26 return $this->str;
27 }
28 }