Passed
Pull Request — 1.11.x (#4668)
by Angel Fernando Quiroz
08:13
created

AgendaEventSubscription   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setMaxAttendees() 0 5 1
A getMaxAttendees() 0 3 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CoreBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * ORM\Entity()
11
 */
12
class AgendaEventSubscription extends AgendaEventInvitation
13
{
14
    public const SUBSCRIPTION_NO = 0;
15
    public const SUBSCRIPTION_ALL = 1;
16
    public const SUBSCRIPTION_CLASS = 2;
17
18
    /**
19
     * @var int
20
     *
21
     * @ORM\Column(name="max_attendees", type="integer", nullable=false, options={"default": 0})
22
     */
23
    protected $maxAttendees = 0;
24
25
    public function getMaxAttendees(): int
26
    {
27
        return $this->maxAttendees;
28
    }
29
30
    public function setMaxAttendees(int $maxAttendees): self
31
    {
32
        $this->maxAttendees = $maxAttendees;
33
34
        return $this;
35
    }
36
}
37