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

Breadcrumb

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

function Call::__construct

Initializes call.

Parameters

string $methodName:

array<mixed> $arguments:

mixed $returnValue:

Exception|null $exception:

null|string $file:

null|int $line:

File

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

Class

Call
Call object.

Namespace

Prophecy\Call

Code

public function __construct($methodName, array $arguments, $returnValue, ?Exception $exception, $file, $line) {
    $this->methodName = $methodName;
    $this->arguments = $arguments;
    $this->returnValue = $returnValue;
    $this->exception = $exception;
    $this->scores = new \SplObjectStorage();
    if ($file) {
        $this->file = $file;
        $this->line = intval($line);
    }
}
RSS feed
Powered by Drupal