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

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