impl
public php v1 · immutable<?phpclass T { private function __construct () { echo "Private constructor\n"; } public static function getInstance () { static $instance; if ($instance === null) { $instance = new T(); } return $instance; }}$t = T::getInstance();?>