ClientRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 16
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getIdArrayByTags() 0 9 1
1
<?php
2
3
namespace ClientBundle\Repository;
4
5
use Doctrine\ORM\EntityRepository;
6
7
/**
8
 * Class ClientRepository
9
 */
10
class ClientRepository extends EntityRepository
11
{
12
    /**
13
     * @param \ClientBundle\Entity\Tags $tags
14
     * @return array
15
     */
16
    public function getIdArrayByTags($tags)
17
    {
18
        $tagsarray = implode([', '], $tags);
19
20
        return $this->getEntityManager()
21
            ->createQuery("'SELECT c.id FROM ClientBundle:Client c WHERE'")
22
            ->setParameter('tag', $tagsarray)
23
            ->getResult();
24
    }
25
}
26