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

LastInsertId::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
crap 2
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