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

Breadcrumb

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

function Call::getScore

Returns wildcard match score for the provided wildcard. The score is calculated if not already done.

Parameters

ArgumentsWildcard $wildcard:

Return value

false|int False OR integer score (higher - better)

File

vendor/phpspec/prophecy/src/Prophecy/Call/Call.php, line 163

Class

Call
Call object.

Namespace

Prophecy\Call

Code

public function getScore(ArgumentsWildcard $wildcard) {
    if (isset($this->scores[$wildcard])) {
        return $this->scores[$wildcard];
    }
    return $this->scores[$wildcard] = $wildcard->scoreArguments($this->getArguments());
}

API Navigation

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