Skip to content

支持 链式调用 与 ::newInstance() 便捷新建对象 - #110

Open
WhatABigBottleOfPureWater wants to merge 5 commits into
TencentCloud:masterfrom
WhatABigBottleOfPureWater:patch-1
Open

支持 链式调用 与 ::newInstance() 便捷新建对象#110
WhatABigBottleOfPureWater wants to merge 5 commits into
TencentCloud:masterfrom
WhatABigBottleOfPureWater:patch-1

Conversation

@WhatABigBottleOfPureWater

Copy link
Copy Markdown

然后 所有的

  • @method void set 文档注释都可以替换为
  • @method self set 了。

望采纳, 非常感谢!

然后 所有的 
* @method void set
文档注释都可以替换为 
* @method self set
了。

望采纳, 非常感谢!
@WhatABigBottleOfPureWater WhatABigBottleOfPureWater changed the title 支持 链式调用 与 ::newSelf) 便捷新建对象 支持 链式调用 与 ::newSelf() 便捷新建对象 Sep 9, 2022
@WhatABigBottleOfPureWater

WhatABigBottleOfPureWater commented Sep 9, 2022

Copy link
Copy Markdown
Author

之后就可以 全程 ::newInstance()->methodOne()->methodTwo()->methodThree() 链式调用了, 可以少写很多代码,也简洁

@zqfan zqfan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢贡献,检视意见中有个细节问题还可以讨论下哈

Comment thread src/TencentCloud/Common/AbstractModel.php Outdated
@WhatABigBottleOfPureWater WhatABigBottleOfPureWater changed the title 支持 链式调用 与 ::newSelf() 便捷新建对象 支持 链式调用 与 ::newInstance() 便捷新建对象 Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants