InversedOneToManyEntity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Tests\Models\ValueConversionType;
6
7
use Doctrine\Common\Collections\ArrayCollection;
8
use Doctrine\ORM\Annotation as ORM;
9
10
/**
11
 * @ORM\Entity
12
 * @ORM\Table(name="vct_inversed_onetomany")
13
 */
14
class InversedOneToManyEntity
15
{
16
    /**
17
     * @ORM\Column(type="rot13")
18
     * @ORM\Id
19
     */
20
    public $id1;
21
22
    /** @ORM\OneToMany(targetEntity=OwningManyToOneEntity::class, mappedBy="associatedEntity") */
23
    public $associatedEntities;
24
25
    /** @ORM\Column(type="string", name="some_property") */
26
    public $someProperty;
27
28
    public function __construct()
29
    {
30
        $this->associatedEntities = new ArrayCollection();
31
    }
32
}
33