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

DoctrineCommentsTransactionFactory::__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\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
}