Insert   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPath() 0 3 1
A getMethod() 0 3 1
1
<?php
2
3
4
namespace Manticoresearch\Endpoints;
5
6
use Manticoresearch\Request;
7
8
/**
9
 * Class Insert
10
 * @package Manticoresearch\Endpoints
11
 */
12
class Insert extends Request
13
{
14
    /**
15
     * @return mixed|string
16
     */
17
    public function getPath()
18
    {
19
        return '/json/insert';
20
    }
21
22
    /**
23
     * @return mixed|string
24
     */
25
    public function getMethod()
26
    {
27
        return 'POST';
28
    }
29
}
30