. /** * H5P activity report interface * * @package mod_h5pactivity * @since Moodle 3.9 * @copyright 2020 Ferran Recio * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace mod_h5pactivity\local; use templatable; use stdClass; /** * Interface for any mod_h5pactivity report. * * @package mod_h5pactivity * @since Moodle 3.9 * @copyright 2020 Ferran Recio */ interface report { /** * Return the report user record. * * @return stdClass|null a user or null */ public function get_user(): ?stdClass; /** * Return the report attempt object. * * @return attempt|null the attempt object or null */ public function get_attempt(): ?attempt; /** * Print the report visualization. */ public function print(): void; }