GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 3c5f28...9ed616 )
by
unknown
02:43
created

Image::getMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace NotificationChannels\FacebookPoster\Attachments;
4
5
class Image
6
{
7
    /** @var string */
8
    protected $path;
9
10
    /** @var string */
11
    protected $apiEndpoint;
12
13
    /** @var string */
14
    protected $method = 'fileToUpload';
15
16
    /**
17
     * @param string $imagePath
18
     * @param string $endpoint
19
     */
20
    public function __construct($imagePath, $endpoint)
21
    {
22
        $this->path = $imagePath;
23
24
        $this->apiEndpoint = $endpoint;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getPath()
31
    {
32
        return $this->path;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getApiEndpoint()
39
    {
40
        return $this->apiEndpoint;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getMethod()
47
    {
48
        return $this->method;
49
    }
50
}
51