public __construct ( |
||
$generator | ||
$name | string | the original name |
$isStruct | boolean | defines if it's a real sruct or not |
$isRestriction | boolean | defines if it's an enumeration or not |
public function __construct(Generator $generator, $name, $isStruct = true, $isRestriction = false)
{
parent::__construct($generator, $name);
$this->setIsStruct($isStruct)->setIsRestriction($isRestriction)->setAttributes(new StructAttributeContainer($generator))->setValues(new StructValueContainer($generator));
}