Skip to content

Commit 087934d

Browse files
author
Caitlin Bales (MSFT)
committed
Update JSON and Date types
1 parent 4081f94 commit 087934d

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

Templates/PHP/Model/ComplexType.php.tt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,22 +96,12 @@ class <#=complex.Name.ToUpperFirstChar()#>
9696
public function get<#=property.Name.ToCheckedCase()#>()
9797
{
9898
if (array_key_exists("<#=property.Name.ToCamelize()#>", $this->propDict)) {
99-
<#
100-
if (property.Type.GetTypeString() == "Json") {
101-
#>
102-
return $this->_propDict["<#=property.Name.ToCamelize()#>"];
103-
<#
104-
} else {
105-
#>
10699
if (is_a($this->propDict["<#=property.Name.ToCamelize()#>"], '<#=property.Type.GetTypeString()#>')) {
107100
return $this->propDict["<#=property.Name.ToCamelize()#>"];
108101
} else {
109102
$this->propDict["<#=property.Name.ToCamelize()#>"] = new <#=property.Type.GetTypeString()#>($this->propDict["<#=property.Name.ToCamelize()#>"]);
110103
return $this->propDict["<#=property.Name.ToCamelize()#>"];
111104
}
112-
<#
113-
}
114-
#>
115105
}
116106
return null;
117107
}

Templates/PHP/Model/EntityType.php.tt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,12 @@ class <#=entity.Name.ToCheckedCase()#>
7575
public function get<#=property.Name.ToCheckedCase()#>()
7676
{
7777
if (array_key_exists("<#=property.Name.ToCamelize()#>", $this->_propDict)) {
78-
<#
79-
if (property.Type.GetTypeString() == "Json") {
80-
#>
81-
return $this->_propDict["<#=property.Name.ToCamelize()#>"];
82-
<#
83-
} else {
84-
#>
8578
if (is_a($this->_propDict["<#=property.Name.ToCamelize()#>"], '<#=property.Type.GetTypeString()#>')) {
8679
return $this->_propDict["<#=property.Name.ToCamelize()#>"];
8780
} else {
8881
$this->_propDict["<#=property.Name.ToCamelize()#>"] = new <#=property.Type.GetTypeString()#>($this->_propDict["<#=property.Name.ToCamelize()#>"]);
8982
return $this->_propDict["<#=property.Name.ToCamelize()#>"];
9083
}
91-
<#
92-
}
93-
#>
9484
}
9585
return null;
9686
}

0 commit comments

Comments
 (0)