PHP Conference Japan 2024

Componere\Patch::__construct

(Componere 2 >= 2.1.0)

Componere\Patch::__construct建構 Patch

說明

public Componere\Patch::__construct(物件 $instance)
public Componere\Patch::__construct(物件 $instance, 陣列 $interfaces)

參數

instance

此 Patch 的目標

interfaces

一個不區分大小寫的類別名稱陣列

例外

警告

如果在 interfaces 中找不到類別,則會拋出 RuntimeException 例外。

警告

如果 interfaces 中的類別不是介面,則會拋出 RuntimeException 例外。

新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top