Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / search / compiler / PhutilSearchQueryToken.php
blobb63427131e6f43419f6fe4e513bb7eb9070590c8
1 <?php
3 final class PhutilSearchQueryToken extends Phobject {
5 private $isQuoted;
6 private $value;
7 private $operator;
8 private $function;
10 public static function newFromDictionary(array $dictionary) {
11 $token = new self();
13 $token->isQuoted = $dictionary['quoted'];
14 $token->operator = $dictionary['operator'];
15 $token->value = $dictionary['value'];
16 $token->function = idx($dictionary, 'function');
18 return $token;
21 public function isQuoted() {
22 return $this->isQuoted;
25 public function getValue() {
26 return $this->value;
29 public function getOperator() {
30 return $this->operator;
33 public function getFunction() {
34 return $this->function;