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

ProductBundleSlotOptions::addOption()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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