Chris@14: Chris@14: * Chris@14: * For the full copyright and license information, please view the LICENSE Chris@14: * file that was distributed with this source code. Chris@14: */ Chris@14: namespace PHPUnit\Framework\MockObject\Builder; Chris@14: Chris@14: /** Chris@14: * Builder interface for unique identifiers. Chris@14: * Chris@14: * Defines the interface for recording unique identifiers. The identifiers Chris@14: * can be used to define the invocation order of expectations. The expectation Chris@14: * is recorded using id() and then defined in order using Chris@14: * PHPUnit\Framework\MockObject\Builder\Match::after(). Chris@14: */ Chris@14: interface Identity Chris@14: { Chris@14: /** Chris@14: * Sets the identification of the expectation to $id. Chris@14: * Chris@14: * @note The identifier is unique per mock object. Chris@14: * Chris@14: * @param string $id Unique identification of expectation. Chris@14: */ Chris@14: public function id($id); Chris@14: }