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: * Interface for builders which can register builders with a given identification. Chris@14: * Chris@14: * This interface relates to Identity. Chris@14: */ Chris@14: interface NamespaceMatch Chris@14: { Chris@14: /** Chris@14: * Looks up the match builder with identification $id and returns it. Chris@14: * Chris@14: * @param string $id The identification of the match builder Chris@14: * Chris@14: * @return Match Chris@14: */ Chris@14: public function lookupId($id); Chris@14: Chris@14: /** Chris@14: * Registers the match builder $builder with the identification $id. The Chris@14: * builder can later be looked up using lookupId() to figure out if it Chris@14: * has been invoked. Chris@14: * Chris@14: * @param string $id The identification of the match builder Chris@14: * @param Match $builder The builder which is being registered Chris@14: */ Chris@14: public function registerId($id, Match $builder); Chris@14: }