Passed
Push — master ( 5a5557...1f3f4f )
by Francis
01:32
created

Picture::getUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace LiveStream\Resources;
4
5
class Picture extends Resource
6
{
7
    /**
8
     * Undocumented function
9
     *
10
     * @return string|null
11
     */
12
    public function getUrl(): ?string
13
    {
14
        return $this->data->url ?? null;
0 ignored issues
show
Bug Best Practice introduced by
The property $data is declared private in LiveStream\Resources\Resource. Since you implement __get, consider adding a @property or @property-read.
Loading history...
15
    }
16
17
    /**
18
     * Undocumented function
19
     *
20
     * @return string|null
21
     */
22
    public function getThumbnailUrl(): ?string
23
    {
24
        return $this->data->url ?? null;
0 ignored issues
show
Bug Best Practice introduced by
The property $data is declared private in LiveStream\Resources\Resource. Since you implement __get, consider adding a @property or @property-read.
Loading history...
25
    }
26
}
27