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

Breadcrumb

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

class ObjectProphecyException

Hierarchy

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

Expanded class hierarchy of ObjectProphecyException

2 files declare their use of ObjectProphecyException
ObjectProphecy.php in vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php
UnexpectedCallException.php in vendor/phpspec/prophecy/src/Prophecy/Exception/Call/UnexpectedCallException.php

File

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

Namespace

Prophecy\Exception\Prophecy
View source
class ObjectProphecyException extends \RuntimeException implements ProphecyException {
    private $objectProphecy;
    
    /**
     * @param string                 $message
     * @param ObjectProphecy<object> $objectProphecy
     */
    public function __construct($message, ObjectProphecy $objectProphecy) {
        parent::__construct($message);
        $this->objectProphecy = $objectProphecy;
    }
    
    /**
     * @return ObjectProphecy<object>
     */
    public function getObjectProphecy() {
        return $this->objectProphecy;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ObjectProphecyException::$objectProphecy private property
ObjectProphecyException::getObjectProphecy public function
ObjectProphecyException::__construct public function 2
RSS feed
Powered by Drupal