/** * $ref1 contains $ref2 if they merge and $ref1 results. * * @param Reference $otherReference * @access public * @return string clause for SQL WHERE statement */ public function contains(Reference $other) { $r = new Reference(); $r->addRanges($this->getRanges()); $r->addRanges($other->getRanges()); return $this->equals($r); }