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

JobApi   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getList() 0 8 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