Skip to content

Commit d28debc

Browse files
authored
Merge pull request #49 from ukfast/master
Merge in UKFast master
2 parents 8843224 + e622f09 commit d28debc

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/eCloud/Entities/IpAddress.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,21 @@
99
* @property string $name
1010
* @property string $ipAddress
1111
* @property string $networkId
12+
* @property string $type
1213
* @property string $createdAt
1314
* @property string $updatedAt
1415
*/
1516
class IpAddress extends Entity
1617
{
1718
protected $dates = ['createdAt', 'updatedAt'];
19+
20+
public static $entityMap = [
21+
'id' => 'id',
22+
'name' => 'name',
23+
'ip_address' => 'ipAddress',
24+
'network_id' => 'networkId',
25+
'type' => 'type',
26+
'created_at' => 'createdAt',
27+
'updated_at' => 'updatedAt',
28+
];
1829
}

src/eCloud/IpAddressesClient.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,7 @@ class IpAddressesClient extends Client implements ClientEntityInterface
1515

1616
public function getEntityMap()
1717
{
18-
return [
19-
'id' => 'id',
20-
'name' => 'name',
21-
'ip_address' => 'ipAddress',
22-
'network_id' => 'networkId',
23-
'created_at' => 'createdAt',
24-
'updated_at' => 'updatedAt',
25-
];
18+
return IpAddress::$entityMap;
2619
}
2720

2821
public function loadEntity($data)

0 commit comments

Comments
 (0)