4 * This file is part of the Prophecy.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6 * Marcello Duarte <marcello.duarte@gmail.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Prophecy\Prophecy;
15 * Basic prophecies revealer.
17 * @author Konstantin Kudryashov <ever.zet@gmail.com>
19 class Revealer implements RevealerInterface
28 public function reveal($value)
30 if (is_array($value)) {
31 return array_map(array($this, __FUNCTION__), $value);
34 if (!is_object($value)) {
38 if ($value instanceof ProphecyInterface) {
39 $value = $value->reveal();