Completed
Pull Request — master (#257)
by Éloi
02:08
created

MediaCopyright::getContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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 MediaCopyright implements MediaCopyrightInterface
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $content;
19
20
    /**
21
     * @var string
22
     */
23
    protected $url;
24
25
    /**
26
     * @return string
27
     */
28 2
    public function getContent() : ?string
29
    {
30 2
        return $this->content;
31
    }
32
33
    /**
34
     * @param  string $content
35
     * @return MediaCopyrightInterface
36
     */
37 2
    public function setContent(?string $content) : MediaCopyrightInterface
38
    {
39 2
        $this->content = $content;
40
41 2
        return $this;
42
    }
43
44
    /**
45
     * @return string
46
     */
47 2
    public function getUrl() : ?string
48
    {
49 2
        return $this->url;
50
    }
51
52
    /**
53
     * @param  string $url
54
     * @return MediaCopyrightInterface
55
     */
56 2
    public function setUrl(?string $url) : MediaCopyrightInterface
57
    {
58 2
        $this->url = $url;
59
60 2
        return $this;
61
    }
62
}
63