. namespace core_user\hook; use stdClass; /** * Hook before user information and data updates. * * @package core_user * @copyright 2024 Safat Shahin * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ #[\core\attribute\label('Allows plugins or features to perform actions before a user is updated.')] #[\core\attribute\tags('user')] class before_user_update { /** * Constructor for the hook. * * @param stdClass $user The user instance * @param stdClass $currentuserdata The old user instance */ public function __construct( public readonly stdClass $user, public readonly stdClass $currentuserdata, ) { } }