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

DoubleNameEntity::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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