comparison vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Namespace.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
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 * Interface for builders which can register builders with a given identification.
13 *
14 * This interface relates to PHPUnit_Framework_MockObject_Builder_Identity.
15 *
16 * @since Interface available since Release 1.0.0
17 */
18 interface PHPUnit_Framework_MockObject_Builder_Namespace
19 {
20 /**
21 * Looks up the match builder with identification $id and returns it.
22 *
23 * @param string $id The identifiction of the match builder.
24 * @return PHPUnit_Framework_MockObject_Builder_Match
25 */
26 public function lookupId($id);
27
28 /**
29 * Registers the match builder $builder with the identification $id. The
30 * builder can later be looked up using lookupId() to figure out if it
31 * has been invoked.
32 *
33 * @param string $id
34 * The identification of the match builder.
35 * @param PHPUnit_Framework_MockObject_Builder_Match $builder
36 * The builder which is being registered.
37 */
38 public function registerId($id, PHPUnit_Framework_MockObject_Builder_Match $builder);
39 }