12 namespace fpoirotte\XRL\Types;
25 return ($this->value ?
'true' :
'false');
32 throw new \InvalidArgumentException(
'Expected boolean value');
38 public function write(\XMLWriter $writer, \DateTimeZone $timezone, $stringTag)
40 $writer->writeElement(
'boolean', (
int) $this->value);
44 protected static function parse(
$value, \DateTimeZone $timezone = null)
48 } elseif (
$value ===
'1') {
The XML-RPC "boolean" type.
$value
Current value associated with this object.
static parse($value,\DateTimeZone $timezone=null)
write(\XMLWriter $writer,\DateTimeZone $timezone, $stringTag)
A class representing an abstract XML-RPC type.