Completed
Push — master ( 58e1a3...56d6f2 )
by Maik
01:20
created

Result::setFirstURL()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
namespace Nkey\DDG\API\Model;
3
4
/**
5
 * Model for RelatedTopics property
6
 * 
7
 * @author Maik Greubel <[email protected]>
8
 */
9
class Result
10
{
11
12
    /**
13
     *
14
     * @var string
15
     */
16
    private $result;
17
18
    /**
19
     *
20
     * @var Icon
21
     */
22
    private $icon;
23
24
    /**
25
     *
26
     * @var string
27
     */
28
    private $firstURL;
29
30
    /**
31
     *
32
     * @var string
33
     */
34
    private $text;
35
36
    /**
37
     *
38
     * @return string
39
     */
40
    public function getResult(): string
41
    {
42
        return $this->result;
43
    }
44
45
    /**
46
     *
47
     * @param string $result
48
     * @return Result
49
     */
50 3
    public function setResult(string $result)
51
    {
52 3
        $this->result = $result;
53 3
        return $this;
54
    }
55
56
    /**
57
     *
58
     * @return Icon
59
     */
60
    public function getIcon(): Icon
61
    {
62
        return $this->icon;
63
    }
64
65
    /**
66
     *
67
     * @param Icon $icon
68
     * @return Result
69
     */
70 3
    public function setIcon(Icon $icon)
71
    {
72 3
        $this->icon = $icon;
73 3
        return $this;
74
    }
75
76
    /**
77
     *
78
     * @return string
79
     */
80
    public function getFirstURL(): string
81
    {
82
        return $this->firstURL;
83
    }
84
85
    /**
86
     *
87
     * @param string $firstURL
88
     * @return Result
89
     */
90 3
    public function setFirstURL(string $firstURL)
91
    {
92 3
        $this->firstURL = $firstURL;
93 3
        return $this;
94
    }
95
96
    /**
97
     *
98
     * @return string
99
     */
100
    public function getText(): string
101
    {
102
        return $this->text;
103
    }
104
105
    /**
106
     *
107
     * @param string $text
108
     * @return Result
109
     */
110 3
    public function setText(string $text)
111
    {
112 3
        $this->text = $text;
113 3
        return $this;
114
    }
115
}