Response::getAuthorName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Bangpound\oEmbed\Response;
4
5
/**
6
 * Class Response.
7
 */
8
class Response
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $type;
14
15
    /**
16
     * @var string
17
     */
18
    protected $version = '1.0';
19
20
    /**
21
     * @var string
22
     */
23
    protected $title;
24
25
    /**
26
     * @var string
27
     */
28
    protected $authorName;
29
30
    /**
31
     * @var string
32
     */
33
    protected $authorUrl;
34
35
    /**
36
     * @var string
37
     */
38
    protected $providerName;
39
40
    /**
41
     * @var string
42
     */
43
    protected $providerUrl;
44
45
    /**
46
     * @var int
47
     */
48
    protected $cacheAge;
49
50
    /**
51
     * @var string
52
     */
53
    protected $thumbnailUrl;
54
55
    /**
56
     * @var int
57
     */
58
    protected $thumbnailWidth;
59
60
    /**
61
     * @var int
62
     */
63
    protected $thumbnailHeight;
64
65
    /**
66
     * @return string
67
     */
68 2
    public function getType()
69
    {
70 2
        return $this->type;
71
    }
72
73
    /**
74
     * @return string
75
     */
76 2
    public function getVersion()
77
    {
78 2
        return $this->version;
79
    }
80
81
    /**
82
     * @return string
83
     */
84 8
    public function getTitle()
85
    {
86 8
        return $this->title;
87
    }
88
89
    /**
90
     * @return string
91
     */
92 2
    public function getAuthorName()
93
    {
94 2
        return $this->authorName;
95
    }
96
97
    /**
98
     * @return string
99
     */
100 2
    public function getAuthorUrl()
101
    {
102 2
        return $this->authorUrl;
103
    }
104
105
    /**
106
     * @return string
107
     */
108 2
    public function getProviderName()
109
    {
110 2
        return $this->providerName;
111
    }
112
113
    /**
114
     * @return string
115
     */
116 2
    public function getProviderUrl()
117
    {
118 2
        return $this->providerUrl;
119
    }
120
121
    /**
122
     * @return int
123
     */
124 2
    public function getCacheAge()
125
    {
126 2
        return $this->cacheAge;
127
    }
128
129
    /**
130
     * @return string
131
     */
132 2
    public function getThumbnailUrl()
133
    {
134 2
        return $this->thumbnailUrl;
135
    }
136
137
    /**
138
     * @return int
139
     */
140 2
    public function getThumbnailWidth()
141
    {
142 2
        return (int) $this->thumbnailWidth;
143
    }
144
145
    /**
146
     * @return int
147
     */
148 2
    public function getThumbnailHeight()
149
    {
150 2
        return (int) $this->thumbnailHeight;
151
    }
152
}
153