Lines Matching refs:type

99      * @param array|null $type array has the format ["name" => string, "params" => array]
103 public function accept($data, ?array $type = null) argument
107 if (null === $type) {
113 $type = ['name' => 'NULL', 'params' => []];
116 switch ($type['name']) {
118 return $this->visitor->visitNull($data, $type);
121 return $this->visitor->visitString($data, $type);
125 return $this->visitor->visitInteger($data, $type);
129 return $this->visitor->visitBoolean($data, $type);
133 return $this->visitor->visitDouble($data, $type);
136 return $this->visitor->visitArray($data, $type);
146 … if ($this->dispatcher->hasListeners('serializer.pre_deserialize', $type['name'], $this->format)) {
147 …'serializer.pre_deserialize', $type['name'], $this->format, $event = new PreDeserializeEvent($this…
148 $type = $event->getType();
155 …Registry->getHandler(GraphNavigatorInterface::DIRECTION_DESERIALIZATION, $type['name'], $this->for…
156 $rs = \call_user_func($handler, $this->visitor, $data, $type, $this->context);
163 $metadata = $this->metadataFactory->getMetadataForClass($type['name']);
169 … if (!empty($metadata->discriminatorMap) && $type['name'] === $metadata->discriminatorBaseClass) {
181 …ect = $this->objectConstructor->construct($this->visitor, $metadata, $data, $type, $this->context);
183 $this->visitor->startVisitingObject($metadata, $object, $type);
206 $rs = $this->visitor->endVisitingObject($metadata, $data, $type);
207 $this->afterVisitingObject($metadata, $rs, $type);
232 private function afterVisitingObject(ClassMetadata $metadata, object $object, array $type): void argument
242 …ost_deserialize', $metadata->name, $this->format, new ObjectEvent($this->context, $object, $type));