. /** * Time splitting method that generates insights every fortnight and calculates indicators using upcoming dates. * * @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 */ namespace core\analytics\time_splitting; defined('MOODLE_INTERNAL') || die(); /** * Time splitting method that generates insights every fortnight and calculates indicators using upcoming dates. * * @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 upcoming_fortnight extends \core_analytics\local\time_splitting\upcoming_periodic { /** * The time splitting method name. * @return \lang_string */ public static function get_name() : \lang_string { return new \lang_string('timesplitting:upcomingfortnight'); } /** * Every two weeks. * @return \DateInterval */ public function periodicity() { return new \DateInterval('P2W'); } }