/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/MethodProphecyException.php

https://bitbucket.org/alan_cordova/api-sb-map · PHP · 34 lines · 16 code · 7 blank · 11 comment · 0 complexity · c3d302ded3ee0ce6e9811f3e7705163c 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\Prophecy;
  11. use Prophecy\Prophecy\MethodProphecy;
  12. class MethodProphecyException extends ObjectProphecyException
  13. {
  14. private $methodProphecy;
  15. public function __construct($message, MethodProphecy $methodProphecy)
  16. {
  17. parent::__construct($message, $methodProphecy->getObjectProphecy());
  18. $this->methodProphecy = $methodProphecy;
  19. }
  20. /**
  21. * @return MethodProphecy
  22. */
  23. public function getMethodProphecy()
  24. {
  25. return $this->methodProphecy;
  26. }
  27. }