File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 9
9
* @property string $name
10
10
* @property string $ipAddress
11
11
* @property string $networkId
12
+ * @property string $type
12
13
* @property string $createdAt
13
14
* @property string $updatedAt
14
15
*/
15
16
class IpAddress extends Entity
16
17
{
17
18
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
+ ];
18
29
}
Original file line number Diff line number Diff line change @@ -15,14 +15,7 @@ class IpAddressesClient extends Client implements ClientEntityInterface
15
15
16
16
public function getEntityMap ()
17
17
{
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 ;
26
19
}
27
20
28
21
public function loadEntity ($ data )
You can’t perform that action at this time.
0 commit comments