Completed
Pull Request — master (#22)
by Matthias
01:29
created

ProductBundleSlotOptions   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 38
c 0
b 0
f 0
wmc 6
lcom 1
cbo 0
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A addOption() 0 4 1
A getOption() 0 4 1
A setPosition() 0 4 1
A getPosition() 0 4 1
A setAsPresentationSlot() 0 4 1
A isPresentationSlot() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace solutionDrive\SyliusProductBundlesPlugin\Service\Options;
6
7
/**
8
 * Created by solutionDrive GmbH
9
 *
10
 * @copyright 2018 solutionDrive GmbH
11
 */
12
class ProductBundleSlotOptions implements ProductBundleSlotOptionsInterface
13
{
14
    /** @var int */
15
    private $position;
16
17
    /** @var bool */
18
    private $isPresentationSlot = false;
19
20
    public function addOption(string $name, mixed $value): void
21
    {
22
        // TODO: Implement addOption() method.
23
    }
24
25
    public function getOption(string $name): mixed
26
    {
27
        // TODO: Implement getOption() method.
28
    }
29
30
    public function setPosition(int $position): void
31
    {
32
        $this->position = $position;
33
    }
34
35
    public function getPosition(): int
36
    {
37
        return $this->position;
38
    }
39
40
    public function setAsPresentationSlot(): void
41
    {
42
        $this->isPresentationSlot = true;
43
    }
44
45
    public function isPresentationSlot(): bool
46
    {
47
        return $this->isPresentationSlot;
48
    }
49
}
50