. */ /** * The Matcher interface for comparing arguments. * @author Chris Corbyn * @package Yay */ interface Yay_Matcher { /** * Compare the $argument with whatever is expected to match it. * @param mixed $argument * @return boolean */ public function matches(&$argument); /** * Returns true if the argument doesn't need to be present. * @return boolean */ public function isOptional(); /** * Writes the match description as a string following $format. * $format is a sprintf() string with %s, $s as $matcherName, $value respectively. * @param string $format * @return string */ public function describeMatch($format); }