Test Failed
Push — master ( b856ab...dd13ee )
by Jan
01:53
created

Video::getUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace DiscordWebhook\Embed;
5
6
use DiscordWebhook\Embed\Traits\ResizableTrait;
7
8
/**
9
 * Class Video
10
 *
11
 * @package DiscordWebhook\Embed
12
 * @author Scrummer <[email protected]>
13
 */
14
class Video
15
{
16
    use ResizableTrait;
17
18
    /**
19
     * @var string|null
20
     */
21
    private $url;
22
23
    /**
24
     * @return string|null
25
     */
26
    public function getUrl(): ?string
27
    {
28
        return $this->url;
29
    }
30
31
    /**
32
     * @param string|null $url
33
     *
34
     * @return self
35
     */
36
    public function setUrl(?string $url): self
37
    {
38
        $this->url = $url;
39
40
        return $this;
41
    }
42
}
43