Failed Conditions
Pull Request — master (#6575)
by Luís
14:40
created

NonLoadingPersister::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace Doctrine\Performance\Mock;
4
5
use Doctrine\ORM\Persisters\Entity\BasicEntityPersister;
6
use Doctrine\ORM\Query;
7
8
/**
9
 * A persister that doesn't actually load given objects
10
 */
11
class NonLoadingPersister extends BasicEntityPersister
12
{
13
    public function __construct()
14
    {
15
    }
16
17
    /**
18
     * {@inheritDoc}
19
     */
20
    public function load(
21
        array $criteria,
22
        $entity = null,
23
        $assoc = null,
24
        array $hints = array(),
25
        $lockMode = 0,
26
        $limit = null,
27
        array $orderBy = null
28
    ) {
29
        return $entity;
30
    }
31
}