示例#1
0
文件: Where.php 项目: Andyyang1981/pi
 /**
  * {@inheritdoc}
  * @param  \Closure|string|array|Predicate\PredicateInterface $predicates
  * @param  string $defaultCombination
  *      One of the OP_* constants from Predicate\PredicateSet
  */
 public function __construct($predicates = null, $defaultCombination = self::COMBINED_BY_AND)
 {
     parent::__construct(null, $defaultCombination);
     if ($predicates) {
         $this->addPredicates($predicates);
     }
 }