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

AgendaEventSubscription::setMaxAttendees()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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