Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TokenInterface.php

interface TokenInterface

Argument token interface.

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

Hierarchy

  • interface \Prophecy\Argument\Token\TokenInterface

Expanded class hierarchy of TokenInterface

All classes that implement TokenInterface

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 mixed $argument
     *
     * @return false|int
     */
    public function scoreArgument($argument);
    
    /**
     * Returns true if this token prevents check of other tokens (is last one).
     *
     * @return bool
     */
    public function isLast();
    
    /**
     * Returns string representation for token.
     *
     * @return string
     */
    public function __toString();

}

Members

Title Sort descending Modifiers Object type Summary Overrides
TokenInterface::isLast public function Returns true if this token prevents check of other tokens (is last one). 16
TokenInterface::scoreArgument public function Calculates token match score for provided argument. 16
TokenInterface::__toString public function Returns string representation for token. 16

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal