MDL-81525 core_group: Hook style fixes

This commit is contained in:
Andrew Nicols 2024-04-14 21:41:13 +08:00
parent d8b1156e5b
commit ae48b9525a
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14
5 changed files with 7 additions and 5 deletions

View File

@ -28,13 +28,13 @@ use stdClass;
#[\core\attribute\label('Allows plugins or features to perform actions after a group is created.')]
#[\core\attribute\tags('group')]
class after_group_created {
/**
* Constructor for the hook.
*
* @param stdClass $groupinstance The group instance.
*/
public function __construct(
/** @var stdClass The group instance */
public readonly stdClass $groupinstance,
) {
}

View File

@ -28,13 +28,13 @@ use stdClass;
#[\core\attribute\label('Allows plugins or features to perform actions after a group is deleted.')]
#[\core\attribute\tags('group')]
class after_group_deleted {
/**
* Constructor for the hook.
*
* @param stdClass $groupinstance The group instance.
*/
public function __construct(
/** @var stdClass The group instance */
public readonly stdClass $groupinstance,
) {
}

View File

@ -28,7 +28,6 @@ use stdClass;
#[\core\attribute\label('Allows plugins or features to perform actions after members added to the group.')]
#[\core\attribute\tags('group', 'user')]
class after_group_membership_added {
/**
* Constructor for the hook.
*
@ -36,7 +35,9 @@ class after_group_membership_added {
* @param array $userids The user ids.
*/
public function __construct(
/** @var stdClass The group instance */
public readonly stdClass $groupinstance,
/** @var array The user ids */
public readonly array $userids,
) {
}

View File

@ -28,7 +28,6 @@ use stdClass;
#[\core\attribute\label('Allows plugins or features to perform actions after members removed from the group.')]
#[\core\attribute\tags('group', 'user')]
class after_group_membership_removed {
/**
* Constructor for the hook.
*
@ -36,7 +35,9 @@ class after_group_membership_removed {
* @param array $userids The user ids.
*/
public function __construct(
/** @var stdClass The group instance */
public readonly stdClass $groupinstance,
/** @var array The user ids */
public readonly array $userids,
) {
}

View File

@ -28,13 +28,13 @@ use stdClass;
#[\core\attribute\label('Allows plugins or features to perform actions after a group is updated.')]
#[\core\attribute\tags('group')]
class after_group_updated {
/**
* Constructor for the hook.
*
* @param stdClass $groupinstance The group instance.
*/
public function __construct(
/** @var stdClass The group instance */
public readonly stdClass $groupinstance,
) {
}