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

Author::setUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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