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

Breadcrumb

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

class AnyValueToken

Any single value token.

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

Hierarchy

  • class \Prophecy\Argument\Token\AnyValueToken implements \Prophecy\Argument\Token\TokenInterface

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 mixed $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

Title Sort descending Modifiers Object type Summary Overriden Title
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

API Navigation

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