public function setXmlDecoder($function) { if (is_callable($function)) { $this->xmlDecoder = $function; } }