Completed
Push — master ( e57500...6b1ea1 )
by Michael
05:04
created

CodebaseClient::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace ParityBit\DeploymentNotifier\Clients;
4
5
use ParityBit\DeploymentNotifier\Deployment;
6
7
class CodebaseClient
8
{
9
    protected $username;
10
	protected $password;
11
	protected $headers = [
12
        'Accept: application/xml',
13
        'Content-type: application/xml',
14
    ];
15
16
	const endpoint = 'http://api3.codebasehq.com/';
17
18
    public function __construct($username, $password)
19
    {
20
        $this->username = $username;
21
        $this->password = $password;
22
    }
23
24
    public function getTicketsFromIds($ticketIds = [])
0 ignored issues
show
Unused Code introduced by
The parameter $ticketIds is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
25
    {
26
27
    }
28
29
    public function updateTicketStatus($project, $ticketId, $newStatus)
0 ignored issues
show
Unused Code introduced by
The parameter $project is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $ticketId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $newStatus is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
30
    {
31
32
    }
33
34
    public function registerDeployment(Deployment $deployment)
0 ignored issues
show
Unused Code introduced by
The parameter $deployment is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
35
    {
36
37
    }
38
}
39