Issues (78)

src/Linode/JobApi.php (1 issue)

1
<?php
2
3
//----------------------------------------------------------------------
4
//
5
//  Copyright (C) 2015-2017 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', [
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->call('lino...Only' => $pendingOnly)) returns the type boolean which is incompatible with the documented return type array.
Loading history...
35 1
            'LinodeID'    => $LinodeID,
36 1
            'JobID'       => $JobID,
37 1
            'pendingOnly' => $pendingOnly,
38
        ]);
39
    }
40
}
41