AttributeRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A findMultiValuedOptions() 0 13 1
1
<?php
2
3
namespace Actualys\Bundle\DrupalCommerceConnectorBundle\Entity\Repository;
4
5
use Pim\Bundle\CatalogBundle\Entity\Repository\AttributeRepository as BaseAttributeRepository;
6
7
class AttributeRepository extends BaseAttributeRepository
0 ignored issues
show
Deprecated Code introduced by
The class Pim\Bundle\CatalogBundle...ory\AttributeRepository has been deprecated with message: will be moved to Pim\Bundle\CatalogBundle\Doctrine\ORM\Repository in 1.4

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
8
{
9
    /**
10
     * @return \Doctrine\ORM\QueryBuilder
11
     */
12
    public function findMultiValuedOptions()
13
    {
14
        return $this
15
          ->createQueryBuilder('c')
16
          ->select('c')
17
          ->where('c.attributeType IN(:param1, :param2)')
18
          ->setParameters(
19
            array(
20
              'param1' => 'pim_catalog_multiselect',
21
              'param2' => 'pim_catalog_simpleselect',
22
            )
23
          );
24
    }
25
}
26