4 * This file is part of the Prophecy.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6 * Marcello Duarte <marcello.duarte@gmail.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Prophecy\Argument\Token;
15 * Argument token interface.
17 * @author Konstantin Kudryashov <ever.zet@gmail.com>
19 interface TokenInterface
22 * Calculates token match score for provided argument.
28 public function scoreArgument($argument);
31 * Returns true if this token prevents check of other tokens (is last one).
35 public function isLast();
38 * Returns string representation for token.
42 public function __toString();