. /** * Time splitting method that generates weekly predictions. * * @package core_analytics * @copyright 2019 David Monllao {@link http://www.davidmonllao.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Time splitting method that generates weekly predictions. * * @package core_analytics * @copyright 2019 David Monllao {@link http://www.davidmonllao.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class test_timesplitting_weekly extends \core_analytics\local\time_splitting\periodic { /** * The time splitting method name. * @return \lang_string */ public static function get_name() : \lang_string { return new \lang_string('error'); } /** * Once per week. * @return \DateInterval */ public function periodicity() { return new \DateInterval('P1W'); } }