Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

tkaven
Copy link

@tkaven tkaven commented Sep 9, 2022

然后 所有的

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

望采纳, 非常感谢!

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

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

tkaven commented Sep 9, 2022

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

Copy link
Member

@zqfan zqfan left a comment

Choose a reason for hiding this comment

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

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

src/TencentCloud/Common/AbstractModel.php Outdated Show resolved Hide resolved
@tkaven tkaven 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