MetadataDriverMock   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 25
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A loadMetadataForClass() 0 3 1
A isTransient() 0 4 1
A getAllClassNames() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DoctrineModuleTest\Service\Mock;
6
7
use Doctrine\Persistence\Mapping\ClassMetadata;
8
use Doctrine\Persistence\Mapping\Driver\MappingDriver;
9
10
class MetadataDriverMock implements MappingDriver
11
{
12
    /**
13
     * {@inheritDoc}
14
     */
15
    public function loadMetadataForClass($className, ClassMetadata $metadata) : void
16
    {
17
    }
18
19
    /**
20
     * {@inheritDoc}
21
     */
22
    public function isTransient($className) : bool
23
    {
24
        return false;
25
    }
26
27
    /**
28
     * @return string[]
29
     */
30
    public function getAllClassNames() : array
31
    {
32
        return [];
33
    }
34
}
35