Completed
Push — master ( d0d40f...472735 )
by Artem
02:46
created

JobApi::getList()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 3
crap 1
1
<?php
2
3
//----------------------------------------------------------------------
4
//
5
//  Copyright (C) 2015-2016 Artem Rodygin
6
//
7
//  This file is part of Linode API Client Library for PHP.
8
//
9
//  You should have received a copy of the MIT License along with
10
//  the library. If not, see <http://opensource.org/licenses/MIT>.
11
//
12
//----------------------------------------------------------------------
13
14
namespace Linode\Linode;
15
16
use Linode\BaseLinodeApi;
17
18
/**
19
 * This class is autogenerated.
20
 *
21
 * @version Linode API v3.3
22
 */
23
class JobApi extends BaseLinodeApi
24
{
25
    /**
26
     * @param int  $LinodeID    [required] 
27
     * @param int  $JobID       [optional] Limits the list to the specified JobID
28
     * @param bool $pendingOnly [optional] 
29
     *
30
     * @return array
31
     */
32 1
    public function getList($LinodeID, $JobID = null, $pendingOnly = null)
33
    {
34 1
        return $this->call('linode.job.list', [
35 1
            'LinodeID'    => $LinodeID,
36 1
            'JobID'       => $JobID,
37 1
            'pendingOnly' => $pendingOnly,
38 1
        ]);
39
    }
40
}
41