Verification   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A initiate() 0 6 1
1
<?php
2
3
namespace Digikraaft\Paystack;
4
5
class Verification extends ApiResource
6
{
7
    const OBJECT_NAME = 'verifications';
8
9
    /*
10
     *
11
     * @link https://developers.paystack.co/reference#resolve-phone-number
12
     */
13
    use ApiOperations\All;
14
15
    public static function initiate($params)
16
    {
17
        self::validateParams($params, true);
18
        $url = static::classUrl();
19
20
        return static::staticRequest('POST', $url, $params);
21
    }
22
}
23