diff --git a/src/Annotation/RequiresRoles.php b/src/Annotation/RequiresRoles.php index afe65aa..a09969e 100644 --- a/src/Annotation/RequiresRoles.php +++ b/src/Annotation/RequiresRoles.php @@ -8,9 +8,16 @@ use Attribute; +/** + * Lets only the listed roles call the method, or every method of the class + * Other roles pass when the injected ACL already allows them on every resource or on the class + * + * @see \Ray\RoleModule\RequiredRolesInterceptor + */ #[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS)] final class RequiresRoles { + /** @param list $value Roles allowed to call */ public function __construct(public array $value) { }