Beispiel #1
0
 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"][Inflector::camelize($element->getName())] = $this->visitElement($class, $schema, $element);
     }
 }
Beispiel #2
0
 private function visitComplexType(PHPClass $class, ComplexType $type)
 {
     $schema = $type->getSchema();
     foreach ($type->getElements() as $element) {
         if ($element instanceof Group) {
             $this->visitGroup($class, $schema, $element);
         } else {
             $property = $this->visitElement($class, $schema, $element);
             $class->addProperty($property);
         }
     }
 }
Beispiel #3
0
 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);
     }
 }