1<?php
2/*
3 * This file is part of the PHPUnit_MockObject package.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11/**
12 * Builder interface for unique identifiers.
13 *
14 * Defines the interface for recording unique identifiers. The identifiers
15 * can be used to define the invocation order of expectations. The expectation
16 * is recorded using id() and then defined in order using
17 * PHPUnit_Framework_MockObject_Builder_Match::after().
18 *
19 * @since Interface available since Release 1.0.0
20 */
21interface PHPUnit_Framework_MockObject_Builder_Identity
22{
23    /**
24     * Sets the identification of the expectation to $id.
25     *
26     * @note The identifier is unique per mock object.
27     *
28     * @param string $id Unique identification of expectation.
29     */
30    public function id($id);
31}
32