Completed
Pull Request — 3.x (#935)
by Peter
01:46
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
/*
5
 * This file is part of the Sonata Project package.
6
 *
7
 * (c) Thomas Rabaix <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity;
14
15
final class ProductId
16
{
17
    /**
18
     * @var int
19
     */
20
    private $id;
21
22
    /**
23
     * @param int $id
24
     */
25
    public function __construct(int $id)
26
    {
27
        $this->id = $id;
28
    }
29
30
    /**
31
     * @return int
32
     */
33
    public function getId(): int
34
    {
35
        return $this->id;
36
    }
37
}
38