UserGroup   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace DoctrineORMModuleTest\Assets\GraphEntity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Doctrine\Common\Collections\ArrayCollection;
7
8
/**
9
 * Part of the test assets used to produce a demo of graphs in the Laminas Developer Tools integration
10
 *
11
 * @license MIT
12
 * @link    http://www.doctrine-project.org/
13
 * @author  Marco Pivetta <[email protected]>
14
 *
15
 * @ORM\Entity()
16
 */
17
class UserGroup
18
{
19
    /**
20
     * @var int
21
     * @ORM\Id()
22
     * @ORM\GeneratedValue(strategy="AUTO")
23
     * @ORM\Column(type="integer")
24
     */
25
    protected $id;
26
27
    /**
28
     * @var \Doctrine\Common\Collections\Collection|User[]
29
     * @ORM\ManyToMany(targetEntity="User", inversedBy="groups")
30
     */
31
    protected $users;
32
33
    /* */
34
    public function __construct()
35
    {
36
        $this->users = new ArrayCollection();
37
    }
38
}
39