Completed
Push — master ( c1ba47...3b776f )
by Benjamin
10:05 queued 04:46
created

InducementCollection::setLimitValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Obblm\Core\Helper\Rule\Inducement;
4
5
use Doctrine\Common\Collections\ArrayCollection;
6
use Obblm\Core\Contracts\RosterInterface;
7
8
class InducementCollection extends ArrayCollection
9
{
10
    protected $roster = null;
11
    protected $limitvalue = null;
12
13
    /**
14
     * @return RosterInterface
15
     */
16
    public function getRoster(): ?RosterInterface
17
    {
18
        return $this->roster;
19
    }
20
21
    /**
22
     * @param RosterInterface|null $roster
23
     * @return $this
24
     */
25
    public function setRoster(?RosterInterface $roster): self
26
    {
27
        $this->roster = $roster;
28
        return $this;
29
    }
30
31
    /**
32
     * @return int
33
     */
34
    public function getLimitValue(): ?int
35
    {
36
        return $this->limitValue;
37
    }
38
39
    /**
40
     * @param int $limitValue
41
     */
42
    public function setLimitValue(int $limitValue): self
43
    {
44
        $this->limitValue = $limitValue;
0 ignored issues
show
Bug Best Practice introduced by
The property limitValue does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
45
        return $this;
46
    }
47
}
48