. namespace mod_quiz\hook; use core\attribute; use mod_quiz\structure; /** * The quiz structure has been modified * * @package mod_quiz * @copyright 2023 onwards Catalyst IT EU {@link https://catalyst-eu.net} * @author Mark Johnson * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ #[attribute\label('The quiz structure has been modified')] #[attribute\tags('quiz', 'structure')] #[attribute\hook\replaces_callbacks('quiz_structure_modified::callback')] class structure_modified { /** * Create a new hook with the modified structure. * * @param structure $structure The new structure. */ public function __construct( /** @var structure The new structure */ protected structure $structure ) { } /** * Returns the new structure of the quiz. * * @return structure The structure object. */ public function get_structure(): structure { return $this->structure; } }