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

Breadcrumb

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

function Argument::which

Checks that argument object has specific state.

Parameters

string $methodName:

mixed $value:

Return value

Token\ObjectStateToken

File

vendor/phpspec/prophecy/src/Prophecy/Argument.php, line 55

Class

Argument
Argument tokens shortcuts.

Namespace

Prophecy

Code

public static function which($methodName, $value) {
    return new Token\ObjectStateToken($methodName, $value);
}

API Navigation

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