Open
Description
Description
add a new Annotation/Attribute to mark the XMLEncoder::ROOT_NODE_NAME
on a class
Annotation\Context
can't be used for this because that can't be tagged in classes (yet)
Example
/*
* @RootNodeName("product")
*/
class Product
{
public $name;
public $price;
}
results in:
<product>
<name></name>
<price></price>
</product>