38 if (
$time instanceof DateTime) {
39 $this->time = clone
$time;
41 $this->time =
new DateTime(
'@' .
$time);
45 $this->time->setTimezone(
new DateTimeZone(
'UTC'));
107 new self(
new DateTime(
$reader->parseInnerTree()));
An exception for terminatinating execution or to throw for unit testing.
This property represents the {DAV:}getlastmodified property.
static xmlDeserialize(Reader $reader)
The deserialize method is called during xml parsing.
xmlSerialize(Writer $writer)
The serialize method is called during xml writing.
__construct($time)
Constructor.
static toHTTPDate(\DateTime $dateTime)
Transforms a DateTime object to HTTP's most common date format.
The Reader class expands upon PHP's built-in XMLReader.
write($value)
Writes a value to the output stream.
This is the XML element interface.