public function supports(mixed $resource, ?string $type = null) : bool { return 'attribute' === $type && \is_array($resource) && isset($resource['path'], $resource['namespace']); }