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 MethodNotFoundException extends DoubleException
32 * @param string $message
33 * @param string|object $classname
34 * @param string $methodName
35 * @param null|Argument\ArgumentsWildcard|array $arguments
37 public function __construct($message, $classname, $methodName, $arguments = null)
39 parent::__construct($message);
41 $this->classname = $classname;
42 $this->methodName = $methodName;
43 $this->arguments = $arguments;
46 public function getClassname()
48 return $this->classname;
51 public function getMethodName()
53 return $this->methodName;
56 public function getArguments()
58 return $this->arguments;