Goetas\Xsd\XsdToPhp\Php\Structure\PHPClass::getProperties PHP Method

getProperties() public method

public getProperties ( ) : Goetas\Xsd\XsdToPhp\Php\Structure\PHPProperty[]
return Goetas\Xsd\XsdToPhp\Php\Structure\PHPProperty[]
    public function getProperties()
    {
        return $this->properties;
    }

Usage Example

Exemplo n.º 1
0
 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;
 }