AmbassadorRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 15
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A findOneByName() 0 8 1
1
<?php
2
3
namespace AppBundle\Entity\Infrasctucture;
4
5
/**
6
 * @author Vehsamrak
7
 */
8
class AmbassadorRepository extends AbstractRepository
9
{
10
11
    /**
12
     * @return Ambassador|object|null
13
     */
14 1
    public function findOneByName(string $name)
15
    {
16 1
        return $this->findOneBy(
17
            [
18 1
                'name' => $name,
19
            ]
20
        );
21
    }
22
}
23