. */ //require 'Yay/SelfDescribing.php'; /** * Provides a means for Expectations to verify they are called in the correct order. * This allows Invocations to be forced in a particular order. * @author Chris Corbyn * @package Yay */ interface Yay_Sequence extends Yay_SelfDescribing { /** * Ask for a new Sequence Id and register the new sequence. * @return int $id */ public function requestSequenceId(); /** * Check if the sequence has progressed far enough for this sequence ID to be used. * @param int $id * @return boolean */ public function isInSequence($sequenceId); }