Completed
Push — 3.x ( c29cc5...51caad )
by Oskar
01:31
created

DoubleNameEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity;
6
7
use Doctrine\ORM\Mapping\Column;
8
use Doctrine\ORM\Mapping\Entity;
9
use Doctrine\ORM\Mapping\Id;
10
11
/** @Entity */
12
final class DoubleNameEntity
13
{
14
    /** @Id @Column(type="integer") */
15
    protected $id;
16
17
    /** @Column(type="string") */
18
    public $name;
19
20
    /** @Column(type="string", nullable=true) */
21
    public $name2;
22
23
    public function __construct($id, $name, $name2)
24
    {
25
        $this->id = $id;
26
        $this->name = $name;
27
        $this->name2 = $name2;
28
    }
29
}
30