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

NonLoadingPersister   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A load() 0 11 1
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
}