Completed
Pull Request — 2.11.x (#3956)
by David
14:33
created

LastInsertId   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 42.86%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 21
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
namespace Doctrine\DBAL\Driver\SQLSrv;
4
5
/**
6
 * Last Id Data Container.
7
 */
8
class LastInsertId
9
{
10
    /** @var int */
11
    private $id;
12
13
    /**
14
     * @param int $id
15
     *
16
     * @return void
17
     */
18 86
    public function setId($id)
19
    {
20 86
        $this->id = $id;
21 86
    }
22
23
    /**
24
     * @return int
25
     */
26
    public function getId()
27
    {
28
        return $this->id;
29
    }
30
}
31