Completed
Push — 1.5 ( c5bd05...970e37 )
by Rafał
10:47 queued 10s
created

SlideshowItem::__construct()   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, SoftDeletableTrait;
13
14
    /**
15
     * @var string|null
16
     */
17
    protected $id;
18
19
    /**
20
     * @var ArticleMediaInterface
21
     */
22
    protected $articleMedia;
23
24
    /**
25
     * @var SlideshowInterface
26
     */
27
    protected $slideshow;
28
29
    public function getId()
30
    {
31
        return $this->id;
32
    }
33
34
    public function getArticleMedia(): ArticleMediaInterface
35
    {
36
        return $this->articleMedia;
37
    }
38
39
    public function setArticleMedia(ArticleMediaInterface $articleMedia): void
40
    {
41
        $this->articleMedia = $articleMedia;
42
    }
43
44
    public function getSlideshow(): SlideshowInterface
45
    {
46
        return $this->slideshow;
47
    }
48
49
    public function setSlideshow(SlideshowInterface $slideshow): void
50
    {
51
        $this->slideshow = $slideshow;
52
    }
53
}
54