Chris@0: Chris@0: * Marcello Duarte Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Prophecy\Argument\Token; Chris@0: Chris@0: /** Chris@0: * Argument token interface. Chris@0: * Chris@0: * @author Konstantin Kudryashov Chris@0: */ Chris@0: interface TokenInterface Chris@0: { Chris@0: /** Chris@0: * Calculates token match score for provided argument. Chris@0: * Chris@0: * @param $argument Chris@0: * Chris@0: * @return bool|int Chris@0: */ Chris@0: public function scoreArgument($argument); Chris@0: Chris@0: /** Chris@0: * Returns true if this token prevents check of other tokens (is last one). Chris@0: * Chris@0: * @return bool|int Chris@0: */ Chris@0: public function isLast(); Chris@0: Chris@0: /** Chris@0: * Returns string representation for token. Chris@0: * Chris@0: * @return string Chris@0: */ Chris@0: public function __toString(); Chris@0: }