Failed Conditions
Pull Request — develop (#6724)
by Marco
122:37 queued 57:31
created

Inverse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Tests\Models\UniDirectionalManyToMany;
6
7
use Doctrine\ORM\Annotation as ORM;
8
9
/**
10
 * @ORM\Entity
11
 * @ORM\Table(name="uni_directional_many_to_many_inverse")
12
 */
13
class Inverse
14
{
15
    /**
16
     * @ORM\Column(type="string")
17
     * @ORM\Id
18
     */
19
    public $id;
20
21
    public function __construct()
22
    {
23
        $this->id = \uniqid(self::class, true);
24
    }
25
}
26