RADRepository::buildOneValid()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 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