You are here

class AnyValueToken in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php \Prophecy\Argument\Token\AnyValueToken

Any single value token.

@author Konstantin Kudryashov <ever.zet@gmail.com>

Hierarchy

Expanded class hierarchy of AnyValueToken

File

vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php, line 19

Namespace

Prophecy\Argument\Token
View source
class AnyValueToken implements TokenInterface {

  /**
   * Always scores 3 for any argument.
   *
   * @param $argument
   *
   * @return int
   */
  public function scoreArgument($argument) {
    return 3;
  }

  /**
   * Returns false.
   *
   * @return bool
   */
  public function isLast() {
    return false;
  }

  /**
   * Returns string representation for token.
   *
   * @return string
   */
  public function __toString() {
    return '*';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AnyValueToken::isLast public function Returns false. Overrides TokenInterface::isLast
AnyValueToken::scoreArgument public function Always scores 3 for any argument. Overrides TokenInterface::scoreArgument
AnyValueToken::__toString public function Returns string representation for token. Overrides TokenInterface::__toString