File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed
Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments