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

Picture   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 20
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUrl() 0 3 1
A getThumbnailUrl() 0 3 1
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