Create::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Digikraaft\Mono\ApiOperations;
4
5
trait Create
6
{
7
    use Request;
8
    /**
9
     * @param array $params
10
     *
11
     * @return array|object
12
     */
13
    public static function create($params)
14
    {
15
        self::validateParams($params, true);
16
        $url = static::classUrl();
17
18
        return static::staticRequest('POST', $url, $params);
19
    }
20
}
21