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

Field::setValue()   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
/**
7
 * Class Field
8
 *
9
 * @package DiscordWebhook\Embed
10
 * @author Scrummer <[email protected]>
11
 */
12
class Field
13
{
14
    /**
15
     * @var string
16
     */
17
    private $name;
18
19
    /**
20
     * @var string
21
     */
22
    private $value;
23
24
    /**
25
     * @var bool|null
26
     */
27
    private $isInline;
28
29
    /**
30
     * @return string
31
     */
32
    public function getName(): string
33
    {
34
        return $this->name;
35
    }
36
37
    /**
38
     * @param string $name
39
     *
40
     * @return self
41
     */
42
    public function setName(string $name): self
43
    {
44
        $this->name = $name;
45
46
        return $this;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getValue(): string
53
    {
54
        return $this->value;
55
    }
56
57
    /**
58
     * @param string $value
59
     *
60
     * @return self
61
     */
62
    public function setValue(string $value): self
63
    {
64
        $this->value = $value;
65
66
        return $this;
67
    }
68
69
    /**
70
     * @return bool|null
71
     */
72
    public function getIsInline(): ?bool
73
    {
74
        return $this->isInline;
75
    }
76
77
    /**
78
     * @param bool|null $isInline
79
     *
80
     * @return self
81
     */
82
    public function setIsInline(?bool $isInline): self
83
    {
84
        $this->isInline = $isInline;
85
86
        return $this;
87
    }
88
}
89