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

setAbstract() public method

public setAbstract ( $abstract )
    public function setAbstract($abstract)
    {
        $this->abstract = (bool) $abstract;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 private function visitTypeBase(PHPClass $class, Type $type)
 {
     $class->setAbstract($type->isAbstract());
     if ($type instanceof SimpleType) {
         $this->visitSimpleType($class, $type);
     }
     if ($type instanceof BaseComplexType) {
         $this->visitBaseComplexType($class, $type);
     }
     if ($type instanceof ComplexType) {
         $this->visitComplexType($class, $type);
     }
 }