Token::findAll()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Rundeck\Resources;
4
5
use Rundeck\HttpClient;
6
7
class Token extends Resource
8
{
9
10
    public function __construct(HttpClient $client, $name = null)
11
    {
12
        $this->name = $name;
13
        $this->client = $client;
14
    }
15
16
    public function findAll($alt = "xml")
17
    {
18
        $response = $this->client->get('/tokens', $alt);
19
        return $response;
20
    }
21
}
22