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 — develop ( 004669...d25c83 )
by Samuel
05:45
created

Service   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 18
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A parameter() 0 5 1
doRequest() 0 1 ?
1
<?php
2
namespace LinusShops\CanadaPost;
3
/**
4
 *
5
 *
6
 * @author Sam Schmidt <[email protected]>
7
 * @since 2015-12-09
8
 * @company Linus Shops
9
 */
10
abstract class Service
11
{
12
    protected $endpointUrl;
13
    protected $parameters = array();
14
15
    public function __construct($endpointUrl)
16
    {
17
        $this->endpointUrl = $endpointUrl;
18
    }
19
20
    public function parameter($name, $value)
21
    {
22
        $this->parameters[$name] = $value;
23
        return $this;
24
    }
25
26
    abstract public function doRequest();
27
}
28