Total Complexity | 3 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
4 | class ContentSecurityManager { |
||
5 | |||
6 | private static NonceGenerator $nonceGenerator; |
||
7 | |||
8 | public static function start(string $nonceGeneratorClass = null) { |
||
9 | $nonceGeneratorClass ??= NonceGenerator::class; |
||
10 | self::$nonceGenerator = new $nonceGeneratorClass(); |
||
11 | } |
||
12 | |||
13 | public static function getNonce(string $name) { |
||
15 | } |
||
16 | |||
17 | public static function isStarted(): bool { |
||
19 | } |
||
20 | } |
||
22 |