CsrfRepositoryProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
3
namespace Leonidas\Framework\Provider;
4
5
use Leonidas\Library\Core\Auth\CsrfManagerRepository;
6
use Panamax\Contracts\ServiceFactoryInterface;
7
use Panamax\Factories\AbstractServiceFactory;
8
use Psr\Container\ContainerInterface;
9
10
class CsrfRepositoryProvider extends AbstractServiceFactory implements ServiceFactoryInterface
11
{
12
    public function create(ContainerInterface $container, array $args = []): CsrfManagerRepository
13
    {
14
        return new CsrfManagerRepository();
15
    }
16
}
17