Goetas\Xsd\XsdToPhp\Jms\YamlConverter::visitBaseComplexType PHP Method

visitBaseComplexType() private method

private visitBaseComplexType ( &$class, &$data, GoetasWebservices\XML\XSDReader\Schema\Type\BaseComplexType $type, $name )
$type GoetasWebservices\XML\XSDReader\Schema\Type\BaseComplexType
    private function visitBaseComplexType(&$class, &$data, BaseComplexType $type, $name)
    {
        $parent = $type->getParent();
        if ($parent) {
            $parentType = $parent->getBase();
            if ($parentType instanceof Type) {
                $this->handleClassExtension($class, $data, $parentType, $name);
            }
        }
        $schema = $type->getSchema();
        if (!isset($data["properties"])) {
            $data["properties"] = array();
        }
        foreach ($this->flattAttributes($type) as $attr) {
            $data["properties"][$this->getNamingStrategy()->getPropertyName($attr)] = $this->visitAttribute($class, $schema, $attr);
        }
    }