Failed Conditions
Pull Request — develop (#6684)
by Michael
61:07
created

CompositeGeneratedIdentifier   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getA() 0 4 1
A getB() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Tests\Models\ValueGenerators;
6
7
use Doctrine\ORM\Annotation as ORM;
8
9
/**
10
 * @ORM\Entity
11
 * @ORM\Table("vg_composite_generated_identifier")
12
 */
13
class CompositeGeneratedIdentifier
14
{
15
    /**
16
     * @ORM\Column
17
     * @ORM\Id
18
     * @ORM\GeneratedValue("CUSTOM")
19
     * @ORM\CustomIdGenerator("Doctrine\Tests\Models\ValueGenerators\FooGenerator")
20
     * @var string|null
21
     */
22
    private $a;
23
24
    /**
25
     * @ORM\Column
26
     * @ORM\Id
27
     * @ORM\GeneratedValue("CUSTOM")
28
     * @ORM\CustomIdGenerator("Doctrine\Tests\Models\ValueGenerators\BarGenerator")
29
     * @var string|null
30
     */
31
    private $b;
32
33
    public function getA() : ?string
34
    {
35
        return $this->a;
36
    }
37
38
    public function getB() : ?string
39
    {
40
        return $this->b;
41
    }
42
}
43