JWELoaderFactoryFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace TMV\JWTModule\DIFactory\Encryption;
6
7
use Jose\Component\Checker\HeaderCheckerManagerFactory;
8
use Jose\Component\Encryption\JWEDecrypterFactory;
9
use Jose\Component\Encryption\JWELoaderFactory;
10
use Jose\Component\Encryption\Serializer\JWESerializerManagerFactory;
11
use Psr\Container\ContainerInterface;
12
13
class JWELoaderFactoryFactory
14
{
15 5
    public function __invoke(ContainerInterface $container): JWELoaderFactory
16
    {
17 5
        return new JWELoaderFactory(
18 5
            $container->get(JWESerializerManagerFactory::class),
19 5
            $container->get(JWEDecrypterFactory::class),
20 5
            $container->get(HeaderCheckerManagerFactory::class)
21
        );
22
    }
23
}
24