Goetas\Xsd\XsdToPhp\Php\ClassGenerator::handleBody PHP Method

handleBody() private method

private handleBody ( ClassGenerator $class, PHPClass $type )
$class Zend\Code\Generator\ClassGenerator
$type Goetas\Xsd\XsdToPhp\Php\Structure\PHPClass
    private function handleBody(Generator\ClassGenerator $class, PHPClass $type)
    {
        foreach ($type->getProperties() as $prop) {
            if ($prop->getName() !== '__value') {
                $this->handleProperty($class, $prop);
            }
        }
        foreach ($type->getProperties() as $prop) {
            if ($prop->getName() !== '__value') {
                $this->handleMethod($class, $prop, $type);
            }
        }
        if (count($type->getProperties()) === 1 && $type->hasProperty('__value')) {
            return false;
        }
        return true;
    }