File tree 2 files changed +18
-6
lines changed
2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,7 @@ public function loadEntity($data)
23
23
24
24
public function getEntityMap ()
25
25
{
26
- return [
27
- 'id ' => 'id ' ,
28
- 'name ' => 'name ' ,
29
- 'code ' => 'code ' ,
30
- 'datacentre_site_id ' => 'datacentreSiteId '
31
- ];
26
+ return AvailabilityZone::$ entityMap ;
32
27
}
33
28
34
29
public function getProducts ($ id , $ filters = [])
Original file line number Diff line number Diff line change 4
4
5
5
use UKFast \SDK \Entity ;
6
6
7
+ /**
8
+ * @property int $id
9
+ * @property string $name
10
+ * @property string $code
11
+ * @property string $datacentreSiteId
12
+ * @property string $resourceTierId
13
+ * @property string $createdAt
14
+ * @property string $updatedAt
15
+ */
7
16
class AvailabilityZone extends Entity
8
17
{
9
18
protected $ dates = ['createdAt ' , 'updatedAt ' ];
19
+
20
+ public static $ entityMap = [
21
+ 'id ' => 'id ' ,
22
+ 'name ' => 'name ' ,
23
+ 'code ' => 'code ' ,
24
+ 'datacentre_site_id ' => 'datacentreSiteId ' ,
25
+ 'resource_tier_id ' => 'resourceTierId ' ,
26
+ ];
10
27
}
You can’t perform that action at this time.
0 commit comments