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

Breadcrumb

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

function ObjectStateToken::__construct

Initializes token.

Parameters

string $methodName:

mixed $value Expected return value:

File

vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ObjectStateToken.php, line 37

Class

ObjectStateToken
Object state-checker token.

Namespace

Prophecy\Argument\Token

Code

public function __construct($methodName, $value, ?StringUtil $util = null, ?ComparatorFactory $comparatorFactory = null) {
    $this->name = $methodName;
    $this->value = $value;
    $this->util = $util ?: new StringUtil();
    $this->comparatorFactory = $comparatorFactory ?: FactoryProvider::getInstance();
}

API Navigation

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