gossi\codegen\model\PhpClass::getParentClassName PHP Method

getParentClassName() public method

Returns the parent class name
public getParentClassName ( ) : string
return string
    public function getParentClassName()
    {
        return $this->parentClassName;
    }

Usage Example

 private function buildSignature(PhpClass $model)
 {
     if ($model->isAbstract()) {
         $this->writer->write('abstract ');
     }
     if ($model->isFinal()) {
         $this->writer->write('final ');
     }
     $this->writer->write('class ');
     $this->writer->write($model->getName());
     if ($parentClassName = $model->getParentClassName()) {
         $this->writer->write(' extends ' . $parentClassName);
     }
     if ($model->hasInterfaces()) {
         $this->writer->write(' implements ');
         $this->writer->write(implode(', ', $model->getInterfaces()->toArray()));
     }
 }
All Usage Examples Of gossi\codegen\model\PhpClass::getParentClassName