Skip to content

Simple PoPo handling #60

@staabm

Description

@staabm

hope its ok to open a support request here.

In my use-case I have a lot of xml which maps 1:1 to PlainOldPHPObjects like

 <order_response xmlns="http://mydomain.de/myobject">
 <request_id>4711</request_id>
 <order_id>54752</order_id>
 <status>INITIALIZED</status>
 <success>true</success>
 </order_response>

and classes like

class OrderResponse
{
    public $request_id;
    public $order_id;
    public $status;
    public $success;
}

no attributes involved. max complexitiy is having some "subobjects" (complex-properties).

is it really required to implement in all my POPO Objects per class xmlDeserialize and xmlSerialize logic? Or is there a simpler way to achieve that?

Any guidance is welcome ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions