/** @return var */ public function typeAnnotations() { $annotations = []; foreach ($this->reflect->getAttributes() as $name => $value) { $annotations[$name] = empty($value) ? null : new Value($value[0]); } return empty($annotations) ? parent::typeAnnotations() : $annotations; }