Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MethodProphecyException.php

class MethodProphecyException

Hierarchy

  • class \Prophecy\Exception\Prophecy\ObjectProphecyException extends \Prophecy\Exception\Prophecy\RuntimeException implements \Prophecy\Exception\Prophecy\ProphecyException
    • class \Prophecy\Exception\Prophecy\MethodProphecyException extends \Prophecy\Exception\Prophecy\ObjectProphecyException

Expanded class hierarchy of MethodProphecyException

5 files declare their use of MethodProphecyException
CallCenter.php in vendor/phpspec/prophecy/src/Prophecy/Call/CallCenter.php
MethodProphecy.php in vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php
NoCallsException.php in vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/NoCallsException.php
ObjectProphecy.php in vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php
UnexpectedCallsException.php in vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsException.php

File

vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/MethodProphecyException.php, line 16

Namespace

Prophecy\Exception\Prophecy
View source
class MethodProphecyException extends ObjectProphecyException {
    private $methodProphecy;
    
    /**
     * @param string $message
     */
    public function __construct($message, MethodProphecy $methodProphecy) {
        parent::__construct($message, $methodProphecy->getObjectProphecy());
        $this->methodProphecy = $methodProphecy;
    }
    
    /**
     * @return MethodProphecy
     */
    public function getMethodProphecy() {
        return $this->methodProphecy;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
MethodProphecyException::$methodProphecy private property
MethodProphecyException::getMethodProphecy public function
MethodProphecyException::__construct public function Overrides ObjectProphecyException::__construct 1
ObjectProphecyException::$objectProphecy private property
ObjectProphecyException::getObjectProphecy public function
RSS feed
Powered by Drupal