Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Packback\Lti1p3\DeepLinkResources\DateTimeInterval Class Reference

Public Member Functions

 __construct (private ?DateTime $start=null, private ?DateTime $end=null)
 
 getArray ()
 
 getEnd ()
 
 getStart ()
 
 setEnd (?DateTime $end)
 
 setStart (?DateTime $start)
 

Static Public Member Functions

static new ()
 

Public Attributes

const ERROR_NO_START_OR_END = 'Either a start or end time must be specified.'
 
const ERROR_START_GT_END = 'The start time cannot be greater than end time.'
 

The documentation for this class was generated from the following file: