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\Prediction; Chris@0: Chris@0: use Prophecy\Prophecy\MethodProphecy; Chris@0: use Prophecy\Exception\Prophecy\MethodProphecyException; Chris@0: Chris@0: class UnexpectedCallsException extends MethodProphecyException implements PredictionException Chris@0: { Chris@0: private $calls = array(); Chris@0: Chris@0: public function __construct($message, MethodProphecy $methodProphecy, array $calls) Chris@0: { Chris@0: parent::__construct($message, $methodProphecy); Chris@0: Chris@0: $this->calls = $calls; Chris@0: } Chris@0: Chris@0: public function getCalls() Chris@0: { Chris@0: return $this->calls; Chris@0: } Chris@0: }