Passed
Push — master ( 3e1d12...91acb4 )
by Luís
13:51 queued 06:19
created

AssociationValueGeneratorExecutor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A execute() 0 4 1
A isDeferred() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\ORM\Sequencing\Planning;
6
7
use Doctrine\ORM\EntityManagerInterface;
8
9
final class AssociationValueGeneratorExecutor implements ValueGenerationExecutor
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14 75
    public function execute(EntityManagerInterface $entityManager, object $entity) : array
15
    {
16
        // value set by inverse side
17 75
        return [];
18
    }
19
20 75
    public function isDeferred() : bool
21
    {
22 75
        return true;
23
    }
24
}
25