Verification::initiate()   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 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 6
rs 10
cc 1
nc 1
nop 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