-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbasic.dto.xml
41 lines (34 loc) · 1.21 KB
/
basic.dto.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0"?>
<dtos
xmlns="cakephp-dto"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="cakephp-dto https://github.com/dereuromark/cakephp-dto">
<dto name="Car">
<field name="color" type="\TestApp\ValueObject\Paint"/>
<field name="isNew" type="bool"/>
<field name="value" type="float"/>
<field name="distanceTravelled" type="int"/>
<field name="attributes" type="string[]"/>
<field name="manufactured" type="\Cake\I18n\Date"/>
<field name="owner" type="Owner"/>
</dto>
<dto name="Cars">
<field name="cars" type="Car[]" collection="true" associative="true"/>
</dto>
<dto name="Owner">
<field name="name" type="string"/>
<field name="insuranceProvider" type="string"/>
<field name="attributes" type="\TestApp\ValueObject\KeyValuePair"/>
<field name="birthday" type="\TestApp\ValueObject\Birthday"/>
</dto>
<dto name="FlyingCar" extends="Car">
<field name="maxAltitude" type="int" defaultValue="0"/>
<field name="maxSpeed" type="int" defaultValue="0" required="true"/>
<field name="complexAttributes" type="array"/>
</dto>
<dto name="OldOne" extends="Car" deprecated="Yeah, sry">
<field name="name" type="string"/>
</dto>
<dto name="EmptyOne">
</dto>
</dtos>