RADRepository   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A buildValid() 0 7 1
A buildOneValid() 0 7 1
1
<?php
2
3
namespace Knp\RadBundle\tests\fixtures;
4
5
use Knp\RadBundle\Doctrine\EntityRepository;
6
7
class RADRepository extends EntityRepository
8
{
9
    public function buildValid()
10
    {
11
        return $this
12
            ->build()
13
            ->where($this->getAlias().'.foo = bar')
14
        ;
15
    }
16
17
    public function buildOneValid($id)
18
    {
19
        return $this
20
            ->buildOne($id)
21
            ->where($this->getAlias().'.foo = bar')
22
        ;
23
    }
24
}
25