. namespace core_course\hook; use stdClass; /** * Hook after course updates. * * @package core_course * @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 after a course is updated.')] #[\core\attribute\tags('course')] class after_course_updated { /** * Constructor for the hook. * * @param stdClass $course The course instance. * @param stdClass $oldcourse The old course instance. * @param bool $changeincoursecat Whether the course category has changed. */ public function __construct( public readonly stdClass $course, public readonly stdClass $oldcourse, public readonly bool $changeincoursecat = false, ) { } }