Test Setup Failed
Push — main ( abdcb9...2e5f68 )
by Slawomir
04:37
created

DoctrineSecurityTransactionFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getManagerName() 0 3 1
1
<?php
2
3
namespace App\Modules\Security\Persistence\Doctrine\Transactions;
4
5
use App\Infrastructure\Doctrine\Transactions\DoctrineTransactionFactory;
6
use App\Modules\Security\Domain\Transactions\SecurityTransactionFactoryInterface;
7
use Doctrine\Persistence\ManagerRegistry;
8
9
class DoctrineSecurityTransactionFactory extends DoctrineTransactionFactory implements SecurityTransactionFactoryInterface
10
{
11
    public function __construct(
12
        ManagerRegistry $managerRegistry
13
    )
14
    {
15
        parent::__construct($managerRegistry);
16
    }
17
18
19
    function getManagerName(): string
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
20
    {
21
        return "security";
22
    }
23
}