PHP8 Componere\cast_by_ref — 铸件

2023-08-31 12:39 更新

(Componere 2 >= 2.1.2)

Componere\cast_by_ref — 铸件

说明

Componere\cast_by_ref(Type $type, $object): Type

参数

type

用户定义的类型

object

具有与 Type 兼容的用户定义类型的对象

返回值

Type 类型的对象,从对象转换,其中成员是对对象成员的引用 

错误/异常

警告

如果对象的类型是内部类或派生自内部类,则应抛出 InvalidArgumentException

警告

如果 Type 是接口,则应抛出 InvalidArgumentException

警告

如果 Type 是一个特征,则应抛出 InvalidArgumentException

警告

如果 Type 是抽象类型,则应抛出 InvalidArgumentException

警告

如果 Type 与对象类型不兼容,则应抛出 InvalidArgumentException

参见

  • Componere\cast


以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号