Failed Conditions
Pull Request — develop (#3348)
by Sergei
10:40
created

LastInsertId   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 42.86%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 13
ccs 3
cts 7
cp 0.4286
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setId() 0 3 1
A getId() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\DBAL\Driver\SQLSrv;
6
7
/**
8
 * Last Id Data Container.
9
 */
10
class LastInsertId
11
{
12
    /** @var string */
13
    private $id = '0';
14
15 84
    public function setId(string $id) : void
16
    {
17 84
        $this->id = $id;
18 84
    }
19
20
    public function getId() : string
21
    {
22
        return $this->id;
23
    }
24
}
25