12 namespace fpoirotte\XRL\Types;
23 public function write(\XMLWriter $writer, \DateTimeZone $timezone, $stringTag)
25 $writer->writeElement(
'base64', base64_encode($this->value));
29 protected static function parse(
$value, \DateTimeZone $timezone = null)
31 $res = base64_decode(
$value,
true);
33 throw new \InvalidArgumentException(
'Expected base64-encoded input');
The XML-RPC "base64" type.
The XML-RPC "string" type.
$value
Current value associated with this object.
write(\XMLWriter $writer,\DateTimeZone $timezone, $stringTag)
static parse($value,\DateTimeZone $timezone=null)