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 */ 18interface 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 identification of the match builder 24 * 25 * @return PHPUnit_Framework_MockObject_Builder_Match 26 */ 27 public function lookupId($id); 28 29 /** 30 * Registers the match builder $builder with the identification $id. The 31 * builder can later be looked up using lookupId() to figure out if it 32 * has been invoked. 33 * 34 * @param string $id The identification of the match builder 35 * @param PHPUnit_Framework_MockObject_Builder_Match $builder The builder which is being registered 36 */ 37 public function registerId($id, PHPUnit_Framework_MockObject_Builder_Match $builder); 38} 39