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: * Any values token. Chris@0: * Chris@0: * @author Konstantin Kudryashov Chris@0: */ Chris@0: class AnyValuesToken implements TokenInterface Chris@0: { Chris@0: /** Chris@0: * Always scores 2 for any argument. Chris@0: * Chris@0: * @param $argument Chris@0: * Chris@0: * @return int Chris@0: */ Chris@0: public function scoreArgument($argument) Chris@0: { Chris@0: return 2; Chris@0: } Chris@0: Chris@0: /** Chris@0: * Returns true to stop wildcard from processing other tokens. Chris@0: * Chris@0: * @return bool Chris@0: */ Chris@0: public function isLast() Chris@0: { Chris@0: return true; Chris@0: } 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: { Chris@0: return '* [, ...]'; Chris@0: } Chris@0: }