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

SlideshowItem   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 2
dl 0
loc 44
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getArticleMedia() 0 4 1
A setArticleMedia() 0 4 1
A getSlideshow() 0 4 1
A setSlideshow() 0 4 1
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