Completed
Pull Request — master (#3)
by Aymen
02:00
created

ApplicationsApi::list()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the fnayou/instapush-php project.
4
 *
5
 * Copyright (c) 2017. Aymen FNAYOU <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Fnayou\InstapushPHP\Api;
12
13
use Fnayou\InstapushPHP\Model\Applications;
14
15
/**
16
 * Class ApplicationsApi.
17
 */
18
class ApplicationsApi extends AbstractApi
19
{
20
    /**
21
     * @return mixed|\Psr\Http\Message\ResponseInterface
22
     */
23
    public function list()
24
    {
25
        $response = $this->doGet('/apps/list');
26
27
        return $this->transformResponse($response, Applications::class);
28
    }
29
}
30