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

NonIdentifierGenerators   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getFoo() 0 4 1
A getBar() 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_non_identifier_generators")
12
 */
13
class NonIdentifierGenerators
14
{
15
    /**
16
     * @ORM\Column(type="integer")
17
     * @ORM\Id
18
     * @ORM\GeneratedValue("AUTO")
19
     * @var int|null
20
     */
21
    private $id;
22
23
    /**
24
     * @ORM\Column(type="string")
25
     * @ORM\GeneratedValue("CUSTOM")
26
     * @ORM\CustomIdGenerator("Doctrine\Tests\Models\ValueGenerators\FooGenerator")
27
     * @var string|null
28
     */
29
    private $foo;
30
31
    /**
32
     * @ORM\Column(type="string")
33
     * @ORM\GeneratedValue("CUSTOM")
34
     * @ORM\CustomIdGenerator("Doctrine\Tests\Models\ValueGenerators\BarGenerator")
35
     * @var string|null
36
     */
37
    private $bar;
38
39
    public function getId() : ?int
40
    {
41
        return $this->id;
42
    }
43
44
    public function getFoo() : ?string
45
    {
46
        return $this->foo;
47
    }
48
49
    public function getBar() : ?string
50
    {
51
        return $this->bar;
52
    }
53
}
54