Path: blob/master/src/infrastructure/query/constraint/PhabricatorQueryConstraint.php
12242 views
<?php12final class PhabricatorQueryConstraint extends Phobject {34const OPERATOR_AND = 'and';5const OPERATOR_OR = 'or';6const OPERATOR_NOT = 'not';7const OPERATOR_NULL = 'null';8const OPERATOR_ANCESTOR = 'ancestor';9const OPERATOR_EMPTY = 'empty';10const OPERATOR_ONLY = 'only';11const OPERATOR_ANY = 'any';1213private $operator;14private $value;1516public function __construct($operator, $value) {17$this->operator = $operator;18$this->value = $value;19}2021public function setOperator($operator) {22$this->operator = $operator;23return $this;24}2526public function getOperator() {27return $this->operator;28}2930public function setValue($value) {31$this->value = $value;32return $this;33}3435public function getValue() {36return $this->value;37}3839}404142