46 if (
$value !== self::TRANSPARENT &&
$value !== self::OPAQUE) {
47 throw new \InvalidArgumentException(
'The value must either be specified as "transparent" or "opaque"');
85 switch ($this->value) {
121 if (in_array(
'transparent', $elems)) {
An exception for terminatinating execution or to throw for unit testing.
const NS_CALDAV
This is the official CalDAV namespace.
schedule-calendar-transp property.
getValue()
Returns the current value.
xmlSerialize(Writer $writer)
The xmlSerialize method is called during xml writing.
__construct($value)
Creates the property.
static xmlDeserialize(Reader $reader)
The deserialize method is called during xml parsing.
The Reader class expands upon PHP's built-in XMLReader.
writeElement($name, $content=null)
Write a full element tag and it's contents.
This is the XML element interface.
enum(Reader $reader, $namespace=null)
The 'enum' deserializer parses elements into a simple list without values or attributes.