Lines Matching refs:visitor
39 …public function serializeListToXml(XmlSerializationVisitor $visitor, ConstraintViolationList $list… argument
41 $currentNode = $visitor->getCurrentNode();
43 $visitor->createRoot();
47 $this->serializeViolationToXml($visitor, $violation);
54 …public function serializeListToJson(JsonSerializationVisitor $visitor, ConstraintViolationList $li… argument
56 return $visitor->visitArray(iterator_to_array($list), $type);
59 …public function serializeViolationToXml(XmlSerializationVisitor $visitor, ConstraintViolation $vio… argument
61 $violationNode = $visitor->getDocument()->createElement('violation');
63 $parent = $visitor->getCurrentNode();
65 $visitor->setCurrentAndRootNode($violationNode);
71 … $violationNode->appendChild($messageNode = $visitor->getDocument()->createElement('message'));
73 … $messageNode->appendChild($visitor->getDocument()->createCDATASection($violation->getMessage()));
76 …public function serializeViolationToJson(JsonSerializationVisitor $visitor, ConstraintViolation $v… argument