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; }