Completed
Push — master ( 1a9812...b70610 )
by Sergei
19s queued 14s
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|null */
13
    private $id;
14
15 92
    public function setId(?string $id) : void
16
    {
17 92
        $this->id = $id;
18 92
    }
19
20
    public function getId() : ?string
21
    {
22
        return $this->id;
23
    }
24
}
25