/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsException.php

https://bitbucket.org/alan_cordova/api-sb-map · PHP · 32 lines · 17 code · 7 blank · 8 comment · 0 complexity · c3758e0bfce32841557c4ef457b52073 MD5 · raw file

  1. <?php
  2. /*
  3. * This file is part of the Prophecy.
  4. * (c) Konstantin Kudryashov <ever.zet@gmail.com>
  5. * Marcello Duarte <marcello.duarte@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Prophecy\Exception\Prediction;
  11. use Prophecy\Prophecy\MethodProphecy;
  12. use Prophecy\Exception\Prophecy\MethodProphecyException;
  13. class UnexpectedCallsException extends MethodProphecyException implements PredictionException
  14. {
  15. private $calls = array();
  16. public function __construct($message, MethodProphecy $methodProphecy, array $calls)
  17. {
  18. parent::__construct($message, $methodProphecy);
  19. $this->calls = $calls;
  20. }
  21. public function getCalls()
  22. {
  23. return $this->calls;
  24. }
  25. }