getAnnotationsOfType([AnnotationSchema::class, AttributeSchema::class], true); foreach ($schemas as $schema) { if ($schema->_context->is('class')) { $className = $schema->_context->fullyQualifiedName($schema->_context->class); $interfaces = $analysis->getInterfacesOfClass($className, true); $existing = []; foreach ($interfaces as $interface) { $interfaceName = $interface['context']->fullyQualifiedName($interface['interface']); $interfaceSchema = $analysis->getSchemaForSource($interfaceName); if ($interfaceSchema) { $refPath = !Generator::isDefault($interfaceSchema->schema) ? $interfaceSchema->schema : $interface['interface']; $this->inheritFrom($schema, $interfaceSchema, $refPath, $interface['context']); } else { $this->mergeAnnotations($schema, $interface, $existing); $this->mergeMethods($schema, $interface, $existing); } } } } } }