private function visitComposite(Composite $composite) { $this->doVisit($composite->getConstraint1()); $this->doVisit($composite->getConstraint2()); }