@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at recaptime-dev/main 40 lines 795 B view raw
1<?php 2 3final class PhabricatorQueryConstraint extends Phobject { 4 5 const OPERATOR_AND = 'and'; 6 const OPERATOR_OR = 'or'; 7 const OPERATOR_NOT = 'not'; 8 const OPERATOR_NULL = 'null'; 9 const OPERATOR_ANCESTOR = 'ancestor'; 10 const OPERATOR_EMPTY = 'empty'; 11 const OPERATOR_ONLY = 'only'; 12 const OPERATOR_ANY = 'any'; 13 14 private $operator; 15 private $value; 16 17 public function __construct($operator, $value) { 18 $this->operator = $operator; 19 $this->value = $value; 20 } 21 22 public function setOperator($operator) { 23 $this->operator = $operator; 24 return $this; 25 } 26 27 public function getOperator() { 28 return $this->operator; 29 } 30 31 public function setValue($value) { 32 $this->value = $value; 33 return $this; 34 } 35 36 public function getValue() { 37 return $this->value; 38 } 39 40}