You are here

interface TokenInterface in Zircon Profile 8

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

Argument token interface.

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

Hierarchy

Expanded class hierarchy of TokenInterface

All classes that implement TokenInterface

2 files declare their use of TokenInterface
ArgumentsWildcardSpec.php in vendor/phpspec/prophecy/spec/Prophecy/Argument/ArgumentsWildcardSpec.php
LogicalNotTokenSpec.php in vendor/phpspec/prophecy/spec/Prophecy/Argument/Token/LogicalNotTokenSpec.php

File

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

Namespace

Prophecy\Argument\Token
View source
interface TokenInterface {

  /**
   * Calculates token match score for provided argument.
   *
   * @param $argument
   *
   * @return bool|int
   */
  public function scoreArgument($argument);

  /**
   * Returns true if this token prevents check of other tokens (is last one).
   *
   * @return bool|int
   */
  public function isLast();

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

}

Members

Namesort descending Modifiers Type Description Overrides
TokenInterface::isLast public function Returns true if this token prevents check of other tokens (is last one). 13
TokenInterface::scoreArgument public function Calculates token match score for provided argument. 13
TokenInterface::__toString public function Returns string representation for token. 13