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

MediaPeerLink::getUrl()   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 MediaPeerLink implements MediaPeerLinkInterface
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $url;
19
20
    /**
21
     * @var string
22
     */
23
    protected $type;
24
25
    /**
26
     * @return string
27
     */
28 1
    public function getUrl() : ?string
29
    {
30 1
        return $this->url;
31
    }
32
33
    /**
34
     * @param  string $url
35
     * @return MediaPeerLinkInterface
36
     */
37 1
    public function setUrl(?string $url) : MediaPeerLinkInterface
38
    {
39 1
        $this->url = $url;
40
41 1
        return $this;
42
    }
43
44
    /**
45
     * @return string
46
     */
47 1
    public function getType() : ?string
48
    {
49 1
        return $this->type;
50
    }
51
52
    /**
53
     * @param  string $type
54
     * @return MediaPeerLinkInterface
55
     */
56 1
    public function setType(?string $type) : MediaPeerLinkInterface
57
    {
58 1
        $this->type = $type;
59
60 1
        return $this;
61
    }
62
}
63