Php/docs/closure.construct

From Get docs

Closure::__construct

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Closure::__constructConstructor that disallows instantiation


Description

private Closure::__construct ( )

This method exists only to disallow instantiation of the Closure class. Objects of this class are created in the fashion described on the anonymous functions page.


Parameters

This function has no parameters.