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

Owning   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 21
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Tests\Models\UniDirectionalManyToMany;
6
7
use Doctrine\Common\Collections\ArrayCollection;
8
use Doctrine\Common\Collections\Collection;
9
use Doctrine\ORM\Annotation as ORM;
10
11
/**
12
 * @ORM\Entity
13
 * @ORM\Table(name="uni_directional_many_to_many_owning")
14
 */
15
class Owning
16
{
17
    /**
18
     * @ORM\Column(type="string")
19
     * @ORM\Id
20
     */
21
    public $id;
22
23
    /**
24
     * @var Inverse[]|Collection
25
     *
26
     * @ORM\ManyToMany(targetEntity=Inverse::class)
27
     */
28
    public $inverse;
29
30
    public function __construct()
31
    {
32
        $this->id      = \uniqid(self::class, true);
33
        $this->inverse = new ArrayCollection();
34
    }
35
}
36