InsertContract::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * @category    Brownie/BpmOnline
5
 * @author      Brownie <[email protected]>
6
 * @license     https://opensource.org/licenses/MIT
7
 */
8
9
namespace Brownie\BpmOnline\DataService\Response;
10
11
use Brownie\BpmOnline\DataService\Response;
12
use Brownie\BpmOnline\Exception\ValidateException;
13
14
/**
15
 * The response to the execution of the contract InsertContract.
16
 */
17
class InsertContract extends Response
18
{
19
20
    /**
21
     * Returns the value of the id field.
22
     *
23
     * @return string
24
     *
25
     * @throws ValidateException
26
     */
27 1
    public function getId()
28
    {
29 1
        return $this->getRequestValue('id');
30
    }
31
}
32