WeakReference::__construct

(PHP 7 >= 7.4.0, PHP 8)

WeakReference::__construct不允許實(shí)例化的構(gòu)造函數(shù)

說(shuō)明

public WeakReference::__construct()

這個(gè)方法的存在只是為了禁止實(shí)例化 WeakReference 類(lèi)。 弱引用使用工廠(chǎng)方法 WeakReference::create() 進(jìn)行實(shí)例化。

參數(shù)

此函數(shù)沒(méi)有參數(shù)。

參見(jiàn)