Skip to content

Commit 117a25a

Browse files
Fix base class for PHP complex type (#255)
* Remove entity as a base type for complex types. * Update header comments. This resolves #253 and resolves #254.
1 parent f366c99 commit 117a25a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Templates/PHP/Model/ComplexType.php.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class <#=complexName.ToCheckedCase()#> extends <#=complexBaseName.ToCheckedCase(
3131
<#
3232
} else {
3333
#>
34-
class <#=complexName.ToCheckedCase()#> extends Entity
34+
class <#=complexName.ToCheckedCase()#>
3535
<#
3636
}
3737
#>

src/GraphODataTemplateWriter/CodeHelpers/PHP/CodeWriterPHP.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ public IEnumerable<string> GetDocBlock(string fileName)
4949
"* @package Microsoft.Graph" + this.NewLineCharacter +
5050
"* @copyright © Microsoft Corporation. All rights reserved." + this.NewLineCharacter +
5151
"* @license https://opensource.org/licenses/MIT MIT License" + this.NewLineCharacter +
52-
"* @version GIT: 1.4.0" + this.NewLineCharacter +
53-
"* @link https://graph.microsoft.io/";
52+
"* @link https://graph.microsoft.com";
5453
}
5554

5655
public String GetClassBlock(string fileName, string category)
@@ -62,8 +61,7 @@ public String GetClassBlock(string fileName, string category)
6261
"* @package Microsoft.Graph" + this.NewLineCharacter +
6362
"* @copyright © Microsoft Corporation. All rights reserved." + this.NewLineCharacter +
6463
"* @license https://opensource.org/licenses/MIT MIT License" + this.NewLineCharacter +
65-
"* @version Release: 1.4.0" + this.NewLineCharacter +
66-
"* @link https://graph.microsoft.io/" + this.NewLineCharacter +
64+
"* @link https://graph.microsoft.com" + this.NewLineCharacter +
6765
"*/";
6866
}
6967
}

0 commit comments

Comments
 (0)