Completed
Push — master ( 5a7237...3d9ddd )
by Grégoire
12s queued 10s
created

ProductId   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A __construct() 0 4 1
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
    private $id;
18
19
    public function __construct(int $id)
20
    {
21
        $this->id = $id;
22
    }
23
24
    public function getId(): int
25
    {
26
        return $this->id;
27
    }
28
}
29