Create::create()   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\ApiOperations;
4
5
trait Create
6
{
7
    /**
8
     * @param array $params
9
     *
10
     * @return array|object
11
     */
12
    public static function create($params)
13
    {
14
        self::validateParams($params, true);
15
        $url = static::classUrl();
16
17
        return static::staticRequest('POST', $url, $params);
18
    }
19
}
20