Passed
Push — master ( 196154...99d312 )
by Joachim
16:53
created

PaymentMethodRepository   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A findOneByExternalId() 0 6 1
A __construct() 0 3 1
1
<?php
2
3
namespace Loevgaard\DandomainFoundation\Repository;
4
5
use Loevgaard\DandomainFoundation\Entity\Generated\PaymentMethodInterface;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...\PaymentMethodInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Loevgaard\DandomainFoundation\Entity\PaymentMethod;
7
use Loevgaard\DandomainFoundation\Repository\Generated\PaymentMethodRepositoryTrait;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...ntMethodRepositoryTrait was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Symfony\Bridge\Doctrine\RegistryInterface;
9
10
class PaymentMethodRepository extends AbstractRepository
11
{
12
    use PaymentMethodRepositoryTrait;
13
14
    public function __construct(RegistryInterface $registry)
15
    {
16
        parent::__construct($registry, PaymentMethod::class);
17
    }
18
19
    public function findOneByExternalId(int $externalId): ?PaymentMethodInterface
20
    {
21
        /** @var PaymentMethodInterface $obj */
22
        $obj = $this->_findOneByExternalId($externalId);
23
24
        return $obj;
25
    }
26
}
27