getId(); } public function getAttributes($resource, ContextInterface $context): iterable { return [ 'type' => \get_class($resource), 'name' => $resource->getName(), 'description' => $resource->getDescription(), 'payload' => $resource->getPayload(), 'ruletext' => $resource->toString() ]; } /** * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getRelationships($resource, ContextInterface $context): iterable { return []; } }