LastInsertId.php 400 Bytes
Newer Older
1 2 3 4 5
<?php

namespace Doctrine\DBAL\Driver\SQLSrv;

/**
Benjamin Morel's avatar
Benjamin Morel committed
6
 * Last Id Data Container.
7 8
 *
 * @internal
9
 */
10
final class LastInsertId
11
{
12
    /** @var int */
13 14
    private $id;

Benjamin Morel's avatar
Benjamin Morel committed
15
    /**
16
     * @param int $id
17 18
     *
     * @return void
Benjamin Morel's avatar
Benjamin Morel committed
19
     */
20 21 22 23 24
    public function setId($id)
    {
        $this->id = $id;
    }

Benjamin Morel's avatar
Benjamin Morel committed
25
    /**
26
     * @return int
Benjamin Morel's avatar
Benjamin Morel committed
27
     */
28 29 30 31 32
    public function getId()
    {
        return $this->id;
    }
}