Completed
Branch develop (598d0f)
by Benjamin
03:23
created

MultipleStarPlayer::isMultiple()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Obblm\Core\Helper\Rule\Inducement;
4
5
use Obblm\Core\Contracts\InducementInterface;
6
7
class MultipleStarPlayer extends AbstractInducement implements InducementInterface
8
{
9
    protected $parts = [];
10
11
    public function __construct(array $options = [])
12
    {
13
        parent::__construct($options);
14
        if (isset($options['parts']) && $options['parts']) {
15
            $this->setParts($options['parts']);
16
        }
17
    }
18
19
    public function isMultiple(): bool
20
    {
21
        return true;
22
    }
23
24
    public function setParts(array $parts):self
25
    {
26
        $this->parts = $parts;
27
        return $this;
28
    }
29
30
    public function getParts():array
31
    {
32
        return $this->parts;
33
    }
34
}
35