$attributeClass * @deprecated 34.0.0 call directly on the reflector */ public function hasAnnotationOrAttribute(ReflectionMethod $reflectionMethod, ?string $annotationName, string $attributeClass): bool { return $this->reflector->hasAnnotationOrAttribute($annotationName, $attributeClass); } /** * @param ReflectionMethod $reflectionMethod * @return string[] */ public function getAuthorizedAdminSettingClasses(ReflectionMethod $reflectionMethod): array { $classes = []; if ($this->reflector->hasAnnotation('AuthorizedAdminSetting')) { $classes = explode(';', $this->reflector->getAnnotationParameter('AuthorizedAdminSetting', 'settings')); } $attributes = $reflectionMethod->getAttributes(AuthorizedAdminSetting::class); if (!empty($attributes)) { foreach ($attributes as $attribute) { /** @var AuthorizedAdminSetting $setting */ $setting = $attribute->newInstance(); $classes[] = $setting->getSettings(); } } return $classes; } }