Currently it is not possible to use setters this way:
<?php
class Foo { public function setBar($bazName, $bazValue) { ... } }
?>
The only possibility would be to have two seperate setters or to unique both arguments into an array, but this has several drawbacks regarding type safety and the handling of both values if they belong together.
A solution could be:
<defines>
<tag name="foo" type="Foo" />
<tag name="bar" type="string">
<setterMethod name="setBar">
<attribute name="name" type="string" />
<value source="CData" />
</setterMethod>
</tag>
</defines>
<foo>
<bar boom="example">This is baz.</bar>
</foo>
This would result to:
<?php
$foo = new Foo();
$foo->setBar('example', 'This is baz');
?>