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

AssociationIdentifierTarget::getId()   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_association_identifier_target")
12
 */
13
class AssociationIdentifierTarget
14
{
15
    public const ID = 123;
16
17
    /**
18
     * @ORM\Column(type="integer")
19
     * @ORM\Id
20
     * @var int
21
     */
22
    private $id = self::ID;
23
24
    public function getId() : int
25
    {
26
        return $this->id;
27
    }
28
}
29