Skip to content

Commit 34550e0

Browse files
author
Caitlin Bales (MSFT)
committed
Add OData Type
1 parent 61c95c3 commit 34550e0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Templates/PHP/Model/EntityType.php.tt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,28 @@ foreach(var property in entity.Properties.Where(prop => prop.Type.GetTypeString(
194194
}
195195
if (entity.Name.ToCheckedCase() == "Entity") {
196196
#>
197+
/**
198+
* Gets the ODataType
199+
*
200+
* @return string The ODataType
201+
*/
202+
public function getODataType()
203+
{
204+
return $this->_propDict["@odata.type"];
205+
}
206+
207+
/**
208+
* Sets the ODataType
209+
*
210+
* @param string The ODataType
211+
*
212+
* @return Entity
213+
*/
214+
public function setODataType($val)
215+
{
216+
$this->_propDict["@odata.type"] = $val;
217+
}
218+
197219
/**
198220
* Serializes the object by property array
199221
*

0 commit comments

Comments
 (0)