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

Footer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 1
b 0
f 0
dl 0
loc 27
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setText() 0 5 1
A getText() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace DiscordWebhook\Embed;
5
6
use DiscordWebhook\Embed\Traits\IconTrait;
7
8
/**
9
 * Class Footer
10
 *
11
 * @package DiscordWebhook\Embed
12
 * @author Scrummer <[email protected]>
13
 */
14
class Footer
15
{
16
    use IconTrait;
17
18
    /**
19
     * @var string
20
     */
21
    private $text;
22
23
    /**
24
     * @return string
25
     */
26
    public function getText(): string
27
    {
28
        return $this->text;
29
    }
30
31
    /**
32
     * @param string $text
33
     *
34
     * @return self
35
     */
36
    public function setText(string $text): self
37
    {
38
        $this->text = $text;
39
40
        return $this;
41
    }
42
}
43