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

CompositeGeneratedIdentifier::getA()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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