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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 29
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getPath() 0 4 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