mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-81525 core_group: Hook style fixes
This commit is contained in:
parent
d8b1156e5b
commit
ae48b9525a
@ -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,
|
||||
) {
|
||||
}
|
||||
|
@ -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,
|
||||
) {
|
||||
}
|
||||
|
@ -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,
|
||||
) {
|
||||
}
|
||||
|
@ -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,
|
||||
) {
|
||||
}
|
||||
|
@ -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,
|
||||
) {
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user