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.

© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/closure.construct.php