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

MediaRating   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getContent() 0 4 1
A setContent() 0 6 1
A getScheme() 0 4 1
A setScheme() 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 MediaRating implements MediaRatingInterface
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $content;
19
20
21
    /**
22
     * @var string
23
     */
24
    protected $scheme;
25
26
27
    /**
28
     * @return string
29
     */
30 2
    public function getContent() : ?string
31
    {
32 2
        return $this->content;
33
    }
34
35
    /**
36
     * @param  string $content
37
     * @return MediaRatingInterface
38
     */
39 2
    public function setContent(?string $content) : MediaRatingInterface
40
    {
41 2
        $this->content = $content;
42
43 2
        return $this;
44
    }
45
46
    /**
47
     * @return string
48
     */
49 2
    public function getScheme() : ?string
50
    {
51 2
        return $this->scheme;
52
    }
53
54
    /**
55
     * @param  string $scheme
56
     * @return MediaRatingInterface
57
     */
58 2
    public function setScheme(?string $scheme) : MediaRatingInterface
59
    {
60 2
        $this->scheme = $scheme;
61
62 2
        return $this;
63
    }
64
}
65