Group   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 19
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A setId() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Zikula package.
7
 *
8
 * Copyright Zikula - https://ziku.la/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Zikula\UsersBundle\Entity;
15
16
use Doctrine\ORM\Mapping as ORM;
17
use Nucleos\UserBundle\Model\Group as BaseGroup;
18
19
#[ORM\Entity]
20
#[ORM\Table(name: 'nucleos_user__group')]
21
class Group extends BaseGroup
22
{
23
    #[ORM\Id]
24
    #[ORM\Column]
25
    #[ORM\GeneratedValue(strategy: 'AUTO')]
26
    protected ?int $id = null;
27
28
    public function getId(): ?int
29
    {
30
        return $this->id;
31
    }
32
33
    public function setId(?int $id): self
34
    {
35
        $this->id = $id;
36
37
        return $this;
38
    }
39
}
40