Integration::updatePaymentSessionTimeout()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 6
c 1
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Digikraaft\Paystack;
4
5
class Integration extends ApiResource
6
{
7
    const OBJECT_NAME = 'integration';
8
9
    /**
10
     * Paystack Documentation Reference.
11
     *
12
     * @link https://paystack.com/docs/api/#control-panel-fetch-timeout
13
     *
14
     * @return array|object
15
     */
16
    public static function fetchPaymentSessionTimeout()
17
    {
18
        $url = static::endPointUrl('payment_session_timeout');
19
20
        return static::staticRequest('GET', $url);
21
    }
22
23
    /**
24
     * @param $params the time before stopping session (in seconds). Set to 0 to cancel session timeouts
0 ignored issues
show
Bug introduced by
The type Digikraaft\Paystack\the was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
25
     * Paystack Documentation Reference
26
     *
27
     * @link https://paystack.com/docs/api/#control-panel-update-timeout
28
     *
29
     * @return array|object
30
     */
31
    public static function updatePaymentSessionTimeout($params)
32
    {
33
        self::validateParams($params);
34
        $url = static::endPointUrl('payment_session_timeout');
35
36
        return static::staticRequest('PUT', $url);
37
    }
38
}
39