Special case opus mime detction
[mediawiki.git] / includes / libs / rdbms / encasing / LikeMatch.php
blobb0b3c87984528c63ab839ffdc18fbfb0935e62f4
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;
11 /**
12 * Store a string into a LikeMatch marker object.
14 * @param string $s
16 public function __construct( $s ) {
17 $this->str = $s;
20 /**
21 * Return the original stored string.
23 * @return string
25 public function toString() {
26 return $this->str;