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\Call; Chris@0: Chris@0: use Prophecy\Exception\Prophecy\ObjectProphecyException; Chris@0: use Prophecy\Prophecy\ObjectProphecy; Chris@0: Chris@0: class UnexpectedCallException extends ObjectProphecyException Chris@0: { Chris@0: private $methodName; Chris@0: private $arguments; Chris@0: Chris@0: public function __construct($message, ObjectProphecy $objectProphecy, Chris@0: $methodName, array $arguments) Chris@0: { Chris@0: parent::__construct($message, $objectProphecy); Chris@0: Chris@0: $this->methodName = $methodName; Chris@0: $this->arguments = $arguments; Chris@0: } Chris@0: Chris@0: public function getMethodName() Chris@0: { Chris@0: return $this->methodName; Chris@0: } Chris@0: Chris@0: public function getArguments() Chris@0: { Chris@0: return $this->arguments; Chris@0: } Chris@0: }