ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
BasicAccessCheckClosuresSingleton.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29{
30 protected static ?BasicAccessCheckClosures $instance = null;
31
35 private function __construct()
36 {
37 }
38
39 public static function getInstance(): BasicAccessCheckClosures
40 {
41 if (!self::$instance instanceof BasicAccessCheckClosures) {
42 self::$instance = new BasicAccessCheckClosures();
43 }
44
45 return self::$instance;
46 }
47}