Completed
Pull Request — master (#257)
by Éloi
01:56
created

MediaLicense   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 74
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 74
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getContent() 0 4 1
A setContent() 0 6 1
A getUrl() 0 4 1
A setUrl() 0 6 1
A getType() 0 4 1
A setType() 0 6 1
1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of the feed-io package.
4
 *
5
 * (c) Alexandre Debril <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace FeedIo\Feed\Item;
12
13
class MediaLicense implements MediaLicenseInterface
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $content;
19
20
    /**
21
     * @var string
22
     */
23
    protected $url;
24
25
    /**
26
     * @var string
27
     */
28
    protected $type;
29
30
    /**
31
     * @return string
32
     */
33 1
    public function getContent() : ?string
34
    {
35 1
        return $this->content;
36
    }
37
38
    /**
39
     * @param  string $content
40
     * @return MediaLicenseInterface
41
     */
42 1
    public function setContent(?string $content) : MediaLicenseInterface
43
    {
44 1
        $this->content = $content;
45
46 1
        return $this;
47
    }
48
49
    /**
50
     * @return string
51
     */
52 1
    public function getUrl() : ?string
53
    {
54 1
        return $this->url;
55
    }
56
57
    /**
58
     * @param  string $url
59
     * @return MediaLicenseInterface
60
     */
61 1
    public function setUrl(?string $url) : MediaLicenseInterface
62
    {
63 1
        $this->url = $url;
64
65 1
        return $this;
66
    }
67
68
    /**
69
     * @return string
70
     */
71 1
    public function getType() : ?string
72
    {
73 1
        return $this->type;
74
    }
75
76
    /**
77
     * @param  string $type
78
     * @return MediaLicenseInterface
79
     */
80 1
    public function setType(?string $type) : MediaLicenseInterface
81
    {
82 1
        $this->type = $type;
83
84 1
        return $this;
85
    }
86
}
87