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

Breadcrumb

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

function ArgumentsWildcard::__toString

Returns string representation for wildcard.

Return value

string

File

vendor/phpspec/prophecy/src/Prophecy/Argument/ArgumentsWildcard.php, line 86

Class

ArgumentsWildcard
Arguments wildcarding.

Namespace

Prophecy\Argument

Code

public function __toString() {
    if (null === $this->string) {
        $this->string = implode(', ', array_map(function ($token) {
            return (string) $token;
        }, $this->tokens));
    }
    return $this->string;
}

API Navigation

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