ContactListRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A findOneByName() 0 4 1
1
<?php
2
3
namespace Dekalee\MailjetBundle\Repository;
4
5
use Dekalee\MailjetBundle\Entity\ContactList;
6
use Doctrine\ORM\EntityRepository;
7
8
/**
9
 * ContactListRepository
10
 *
11
 * This class was generated by the Doctrine ORM. Add your own custom
12
 * repository methods below.
13
 */
14
class ContactListRepository extends EntityRepository
15
{
16
    /**
17
     * @param $name
18
     *
19
     * @return ContactList
20
     */
21
    public function findOneByName($name)
22
    {
23
        return $this->findOneBy(['name' => $name]);
24
    }
25
}
26