/** * orX * * Return a new composite OR specification, chaining the current instance with the provided specification * * @param \ArpOdmSpecification\Entity\Specification\OdmSpecificationInterface $spec * @return \ArpOdmSpecification\Entity\Specification\OrSpecification */ public function orX(OdmSpecificationInterface $spec) { if ($this->spec) { // Replace with self return SF::orX($this->spec, $spec); } // return given spec! return $spec; }
/** * orX * * Return a new composite OR specification, chaining the current instance with the provided specification * * @param \ArpOdmSpecification\Entity\Specification\OdmSpecificationInterface $spec * @return \ArpOdmSpecification\Entity\Specification\OrSpecification */ public function orX(SpecificationInterface $spec) { return SF::orX($this, $spec); }