left = $left; $this->right = $right; } /** * Checks if the composite AND of specifications passes * * @param Item $item * * @return bool */ public function isSatisfiedBy(Item $item) { return $this->left->isSatisfiedBy($item) && $this->right->isSatisfiedBy($item); } }