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 ( 9fd22a...23ffaf )
by Dwight
03:21 queued 12s
created

Attachment::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace NotificationChannels\FacebookPoster\Attachments;
4
5
abstract class Attachment
6
{
7
    /**
8
     * The attachment path.
9
     *
10
     * @var string
11
     */
12
    protected $path;
13
14
    /**
15
     * Create a new attachment instance.
16
     *
17
     * @param  string  $path
18
     */
19 4
    public function __construct($path)
20
    {
21 4
        $this->path = $path;
22 4
    }
23
24
    /**
25
     * Get the attachment path.
26
     *
27
     * @return string
28
     */
29 3
    public function getPath()
30
    {
31 3
        return $this->path;
32
    }
33
}
34