Completed
Pull Request — master (#3772)
by Christoph
51:54
created

LastInsertId::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1.037

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 3
cp 0.6667
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
crap 1.037
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 88
    public function setId(?string $id) : void
16
    {
17 88
        $this->id = $id;
18 88
    }
19
20
    public function getId() : ?string
21
    {
22
        return $this->id;
23
    }
24
}
25