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

DoctrineSecurityTransactionFactory::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
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
}