class Revealer
Basic prophecies revealer.
@author Konstantin Kudryashov <ever.zet@gmail.com>
Hierarchy
- class \Prophecy\Prophecy\Revealer implements \Prophecy\Prophecy\RevealerInterface
Expanded class hierarchy of Revealer
1 file declares its use of Revealer
- Prophet.php in vendor/
phpspec/ prophecy/ src/ Prophecy/ Prophet.php
File
-
vendor/
phpspec/ prophecy/ src/ Prophecy/ Prophecy/ Revealer.php, line 19
Namespace
Prophecy\ProphecyView source
class Revealer implements RevealerInterface {
/**
* Unwraps value(s).
*
* @param mixed $value
*
* @return mixed
*/
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;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
Revealer::reveal | public | function | Unwraps value(s). | Overrides RevealerInterface::reveal |