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: Chris@0: class UnexpectedCallsCountException extends UnexpectedCallsException Chris@0: { Chris@0: private $expectedCount; Chris@0: Chris@0: public function __construct($message, MethodProphecy $methodProphecy, $count, array $calls) Chris@0: { Chris@0: parent::__construct($message, $methodProphecy, $calls); Chris@0: Chris@0: $this->expectedCount = intval($count); Chris@0: } Chris@0: Chris@0: public function getExpectedCount() Chris@0: { Chris@0: return $this->expectedCount; Chris@0: } Chris@0: }