Chris@0: Chris@0: * Marcello Duarte Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Prophecy\Exception\Doubler; Chris@0: Chris@0: use ReflectionClass; Chris@0: Chris@0: class ClassMirrorException extends \RuntimeException implements DoublerException Chris@0: { Chris@0: private $class; Chris@0: Chris@0: public function __construct($message, ReflectionClass $class) Chris@0: { Chris@0: parent::__construct($message); Chris@0: Chris@0: $this->class = $class; Chris@0: } Chris@0: Chris@0: public function getReflectedClass() Chris@0: { Chris@0: return $this->class; Chris@0: } Chris@0: }