Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ContainerSingleton |
||
10 | { |
||
11 | /** @var \SimpleSAML\SAML11\Compat\AbstractContainer */ |
||
12 | protected static AbstractContainer $container; |
||
13 | |||
14 | |||
15 | /** |
||
16 | * @return \SimpleSAML\SAML11\Compat\AbstractContainer |
||
17 | */ |
||
18 | public static function getInstance(): AbstractContainer |
||
22 | } |
||
23 | |||
24 | |||
25 | /** |
||
26 | * Set a container to use. |
||
27 | * |
||
28 | * @param \SimpleSAML\SAML11\Compat\AbstractContainer $container |
||
29 | */ |
||
30 | public static function setContainer(AbstractContainer $container): void |
||
35 |