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\Exception\Doubler;
14 class ReturnByReferenceException extends DoubleException
20 * @param string $message
21 * @param string $classname
22 * @param string $methodName
24 public function __construct($message, $classname, $methodName)
26 parent::__construct($message);
28 $this->classname = $classname;
29 $this->methodName = $methodName;
32 public function getClassname()
34 return $this->classname;
37 public function getMethodName()
39 return $this->methodName;