47 throw new \InvalidArgumentException(
'The argument must either be a string or an array with only one child');
70 $this->value = base64_decode($val);
81 return base64_encode($this->value);
108 return [base64_encode($this->
getValue())];
124 parent::setJsonValue(
$value);
An exception for terminatinating execution or to throw for unit testing.
count()
Returns the number of elements.
getRawMimeDirValue()
Returns a raw mime-dir representation of the value.
setValue($value)
Updates the current value.
setJsonValue(array $value)
Sets the json value, as it would appear in a jCard or jCal object.
setRawMimeDirValue($val)
Sets a raw value coming from a mimedir (iCalendar/vCard) file.
getValueType()
Returns the type of value.
getJsonValue()
Returns the value, in the format it should be encoded for json.
getValue()
Returns the current value.