Integration   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 7
c 1
b 0
f 0
dl 0
loc 32
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A fetchPaymentSessionTimeout() 0 5 1
A updatePaymentSessionTimeout() 0 6 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