ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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}