name !== $class->getName()) { throw new \RuntimeException(sprintf('The file %s was expected to return metadata for class %s, but instead returned metadata for class %s.', $class->getName(), $metadata->name)); } return $metadata; } protected function getExtension() { return 'php'; } }