Completed
Push — master ( 1c7520...3a85c6 )
by Rafał
09:11
created

SlideshowItem::getSlideshow()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SWP\Bundle\ContentBundle\Model;
6
7
use SWP\Component\Common\Model\SoftDeletableTrait;
8
use SWP\Component\Common\Model\TimestampableTrait;
9
10
class SlideshowItem implements SlideshowItemInterface
11
{
12
    use TimestampableTrait;
13
    use SoftDeletableTrait;
14
15
    /**
16
     * @var string|null
17
     */
18
    protected $id;
19
20
    /**
21
     * @var ArticleMediaInterface
22
     */
23
    protected $articleMedia;
24
25
    /**
26
     * @var SlideshowInterface
27
     */
28
    protected $slideshow;
29
30
    /** @var int|null */
31
    protected $position = 0;
32
33
    public function getId()
34
    {
35
        return $this->id;
36
    }
37
38
    public function getArticleMedia(): ArticleMediaInterface
39
    {
40
        return $this->articleMedia;
41
    }
42
43
    public function setArticleMedia(ArticleMediaInterface $articleMedia): void
44
    {
45
        $this->articleMedia = $articleMedia;
46
    }
47
48
    public function getSlideshow(): SlideshowInterface
49
    {
50
        return $this->slideshow;
51
    }
52
53
    public function setSlideshow(SlideshowInterface $slideshow): void
54
    {
55
        $this->slideshow = $slideshow;
56
    }
57
58
    public function getPosition(): ?int
59
    {
60
        return $this->position;
61
    }
62
63
    public function setPosition(?int $position): void
64
    {
65
        $this->position = $position;
66
    }
67
}
68