Completed
Push — 2.10 ( 39b76b...400f60 )
by Sergei
30s queued 15s
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
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 87
    public function setId($id)
17
    {
18 87
        $this->id = $id;
19 87
    }
20
21
    /**
22
     * @return int
23
     */
24
    public function getId()
25
    {
26
        return $this->id;
27
    }
28
}
29