PHP Conference Japan 2024

WeakReference::__construct

(PHP 7 >= 7.4.0, PHP 8)

WeakReference::__construct禁止實例化的建構子

說明

public WeakReference::__construct()

這個方法的存在只是為了禁止 WeakReference 類別的實例化。弱引用應該使用工廠方法 WeakReference::create() 來實例化。

參數

此函式沒有參數。

參見

新增註解

使用者貢獻的註解

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