Info::setNews()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * This file is part of the sauls/Xkcd-api-client package.
4
 *
5
 * @author    Saulius Vaičeliūnas <[email protected]>
6
 * @link      http://saulius.vaiceliunas.lt
7
 * @copyright 2018
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Sauls\Component\Xkcd\Api\Dto;
14
15
class Info
16
{
17
    private $month;
18
    private $num;
19
    private $link;
20
    private $year;
21
    private $news;
22
    private $safeTitle;
23
    private $transcript;
24
    private $alt;
25
    private $img;
26
    private $title;
27
    private $day;
28
29 5
    public function getMonth(): string
30
    {
31 5
        return $this->month;
32
    }
33
34 5
    public function setMonth(string $month): void
35
    {
36 5
        $this->month = $month;
37 5
    }
38
39 5
    public function getNum(): int
40
    {
41 5
        return $this->num;
42
    }
43
44 5
    public function setNum(int $num): void
45
    {
46 5
        $this->num = $num;
47 5
    }
48
49 5
    public function getLink(): string
50
    {
51 5
        return $this->link;
52
    }
53
54 5
    public function setLink(string $link): void
55
    {
56 5
        $this->link = $link;
57 5
    }
58
59 5
    public function getYear(): string
60
    {
61 5
        return $this->year;
62
    }
63
64 5
    public function setYear(string $year): void
65
    {
66 5
        $this->year = $year;
67 5
    }
68
69 5
    public function getNews(): string
70
    {
71 5
        return $this->news;
72
    }
73
74 5
    public function setNews(string $news): void
75
    {
76 5
        $this->news = $news;
77 5
    }
78
79 5
    public function getSafeTitle(): string
80
    {
81 5
        return $this->safeTitle;
82
    }
83
84 5
    public function setSafeTitle(string $safeTitle): void
85
    {
86 5
        $this->safeTitle = $safeTitle;
87 5
    }
88
89 5
    public function getTranscript(): string
90
    {
91 5
        return $this->transcript;
92
    }
93
94 5
    public function setTranscript(string $transcript): void
95
    {
96 5
        $this->transcript = $transcript;
97 5
    }
98
99 5
    public function getAlt(): string
100
    {
101 5
        return $this->alt;
102
    }
103
104 5
    public function setAlt(string $alt): void
105
    {
106 5
        $this->alt = $alt;
107 5
    }
108
109 5
    public function getImg(): string
110
    {
111 5
        return $this->img;
112
    }
113
114 5
    public function setImg(string $img): void
115
    {
116 5
        $this->img = $img;
117 5
    }
118
119 5
    public function getTitle(): string
120
    {
121 5
        return $this->title;
122
    }
123
124 5
    public function setTitle(string $title): void
125
    {
126 5
        $this->title = $title;
127 5
    }
128
129 5
    public function getDay(): string
130
    {
131 5
        return $this->day;
132
    }
133
134 5
    public function setDay(string $day): void
135
    {
136 5
        $this->day = $day;
137 5
    }
138
}
139