Exemplo n.º 1
0
 private function visit(VisitorInterface $visitor, Context $context, $data, $format, Type $type = null)
 {
     $data = $visitor->prepare($data);
     $context->initialize($format, $visitor, $this->navigator, $this->factory);
     $visitor->setNavigator($this->navigator);
     $this->navigator->accept($data, $type, $context);
     return $visitor->getResult();
 }
Exemplo n.º 2
0
 public function accept($data, Type $type = null)
 {
     return $this->navigator->accept($data, $type, $this);
 }