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

Breadcrumb

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

function Revealer::reveal

Unwraps value(s).

Parameters

mixed $value:

Return value

mixed

Overrides RevealerInterface::reveal

File

vendor/phpspec/prophecy/src/Prophecy/Prophecy/Revealer.php, line 28

Class

Revealer
Basic prophecies revealer.

Namespace

Prophecy\Prophecy

Code

public function reveal($value) {
    if (is_array($value)) {
        return array_map(array(
            $this,
            __FUNCTION__,
        ), $value);
    }
    if (!is_object($value)) {
        return $value;
    }
    if ($value instanceof ProphecyInterface) {
        $value = $value->reveal();
    }
    return $value;
}

API Navigation

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