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

Video::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 Video
6
{
7
    /** @var array */
8
    protected $data = [];
9
10
    /** @var string */
11
    protected $path;
12
13
    /** @var string */
14
    protected $method = 'videoToUpload';
15
16
    /** @var string */
17
    protected $apiEndpoint;
18
19
    /**
20
     * @param string $videoPath
21
     * @param string $endpoint
22
     */
23
    public function __construct($videoPath, $endpoint)
24
    {
25
        $this->path = $videoPath;
26
        $this->apiEndpoint = $endpoint;
27
    }
28
29
    /**
30
     * @param $title
31
     *
32
     * @return $this
33
     */
34
    public function setTitle($title)
35
    {
36
        $this->data['title'] = $title;
37
38
        return $this;
39
    }
40
41
    /**
42
     * @param string $description
43
     *
44
     * @return $this
45
     */
46
    public function setDescription($description)
47
    {
48
        $this->data['description'] = $description;
49
50
        return $this;
51
    }
52
53
    /**
54
     * @return array
55
     */
56
    public function getData()
57
    {
58
        return $this->data;
59
    }
60
61
    /**
62
     * @return string
63
     */
64
    public function getPath()
65
    {
66
        return $this->path;
67
    }
68
69
    /**
70
     * @return string
71
     */
72
    public function getApiEndpoint()
73
    {
74
        return $this->apiEndpoint;
75
    }
76
77
    /**
78
     * @return string
79
     */
80
    public function getMethod()
81
    {
82
        return $this->method;
83
    }
84
}
85