Completed
Push — master ( a682ba...4851b3 )
by Paweł
40:50
created

Image   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 20%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 44
ccs 2
cts 10
cp 0.2
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getRendition() 0 4 1
A setRendition() 0 4 1
A getMedia() 0 4 1
A setMedia() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Superdesk Web Publisher Content Bundle.
5
 *
6
 * Copyright 2016 Sourcefabric z.ú. and contributors.
7
 *
8
 * For the full copyright and license information, please see the
9
 * AUTHORS and LICENSE files distributed with this source code.
10
 *
11
 * @copyright 2016 Sourcefabric z.ú
12
 * @license http://www.superdesk.org/license
13
 */
14
15
namespace SWP\Bundle\ContentBundle\Doctrine\ORM;
16
17
use SWP\Bundle\ContentBundle\Model\ArticleMediaInterface;
18
use SWP\Bundle\ContentBundle\Model\Image as BaseImage;
19
use SWP\Bundle\ContentBundle\Model\ImageRenditionInterface;
20
use SWP\Component\Storage\Model\PersistableInterface;
21
22
class Image extends BaseImage implements PersistableInterface
23
{
24
    /**
25
     * @var ArticleMediaInterface
26
     */
27
    protected $media;
28
29
    /**
30
     * @var ImageRenditionInterface
31
     */
32
    protected $rendition;
33
34
    /**
35
     * @return ImageRenditionInterface
36
     */
37 3
    public function getRendition()
38
    {
39 3
        return $this->rendition;
40
    }
41
42
    /**
43
     * @param ImageRenditionInterface $rendition
44
     */
45
    public function setRendition(ImageRenditionInterface $rendition)
46
    {
47
        $this->rendition = $rendition;
48
    }
49
50
    /**
51
     * @return ArticleMediaInterface
52
     */
53
    public function getMedia(): ArticleMediaInterface
54
    {
55
        return $this->media;
56
    }
57
58
    /**
59
     * @param ArticleMediaInterface $media
60
     */
61
    public function setMedia(ArticleMediaInterface $media)
62
    {
63
        $this->media = $media;
64
    }
65
}
66