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 ( dafe9f...dc72b4 )
by Dwight
10s
created

Image   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 46
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getPath() 0 4 1
A getApiEndpoint() 0 4 1
A getMethod() 0 4 1
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 1
    public function __construct($imagePath, $endpoint)
21
    {
22 1
        $this->path = $imagePath;
23
24 1
        $this->apiEndpoint = $endpoint;
25 1
    }
26
27
    /**
28
     * @return string
29
     */
30 1
    public function getPath()
31
    {
32 1
        return $this->path;
33
    }
34
35
    /**
36
     * @return string
37
     */
38 1
    public function getApiEndpoint()
39
    {
40 1
        return $this->apiEndpoint;
41
    }
42
43
    /**
44
     * @return string
45
     */
46 1
    public function getMethod()
47
    {
48 1
        return $this->method;
49
    }
50
}
51