Completed
Push — master ( cc864c...f8b489 )
by Akram
02:32
created

Token   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 1
cbo 1
dl 0
loc 17
ccs 0
cts 10
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A findAll() 0 5 1
1
<?php
2
3
namespace Rundeck\Resources;
4
5
use Rundeck\HttpClient;
6
7
class Token
8
{
9
    private $name;
10
    private $client;
11
12
    public function __construct(HttpClient $client, $name = null)
13
    {
14
        $this->name = $name;
15
        $this->client = $client;
16
    }
17
18
    public function findAll($alt = "xml")
19
    {
20
        $response = $this->client->get('/tokens', $alt);
21
        return $response;
22
    }
23
}
24