Completed
Pull Request — 3.x (#935)
by Peter
01:56
created

ProductId::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity;
5
6
final class ProductId
7
{
8
    /**
9
     * @var int
10
     */
11
    private $id;
12
13
    /**
14
     * @param int $id
15
     */
16
    public function __construct(int $id)
17
    {
18
        $this->id = $id;
19
    }
20
21
    /**
22
     * @return int
23
     */
24
    public function getId(): int
25
    {
26
        return $this->id;
27
    }
28
}
29