阅读背景:

将当前对象($this)转换为子类

来源:互联网 

I have a class where it may be necessary to change the object to a descendent class further down the line. Is this possible? I know that one option is to return a copy of it but using the child class instead, but it'd be nice to actually modify the current object... so:I have a class where it may be necessary to cha




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: