private function visitComplexType(&$class, &$data, ComplexType $type)
{
$schema = $type->getSchema();
if (!isset($data["properties"])) {
$data["properties"] = array();
}
foreach ($this->flattElements($type) as $element) {
$data["properties"][$this->getNamingStrategy()->getPropertyName($element)] = $this->visitElement($class, $schema, $element);
}
}