left = $left; $this->right = $right; } /** * Returns the evaluation of both wrapped specifications as a logical OR * * @param Item $item * * @return bool */ public function isSatisfiedBy(Item $item) { return $this->left->isSatisfiedBy($item) || $this->right->isSatisfiedBy($item); } }