public getExtends ( boolean $short = false ) : string | ||
$short | boolean | |
return | string |
public function getExtends($short = false)
{
$extends = '';
if ($this->isArray()) {
$extends = $this->getGenerator()->getOptionStructArrayClass();
} elseif (!$this->getIsRestriction()) {
$extends = $this->getGenerator()->getOptionStructClass();
}
return $short ? Utils::removeNamespace($extends) : $extends;
}