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

DoctrineCommentsTransactionFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getManagerName() 0 3 1
A __construct() 0 5 1
1
<?php
2
3
namespace App\Modules\Comments\Persistence\Doctrine\Transactions;
4
5
use App\Infrastructure\Doctrine\Transactions\DoctrineTransactionFactory;
6
use App\Modules\Comments\Domain\Transactions\CommentsTransactionFactoryInterface;
7
use Doctrine\Persistence\ManagerRegistry;
8
9
class DoctrineCommentsTransactionFactory extends DoctrineTransactionFactory implements CommentsTransactionFactoryInterface
10
{
11
    /**
12
     * @param ManagerRegistry $managerRegistry
13
     */
14
    public function __construct(
15
        ManagerRegistry $managerRegistry
16
    )
17
    {
18
        parent::__construct($managerRegistry);
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    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...
25
    {
26
        return "comments";
27
    }
28
}