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

Breadcrumb

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

class MethodNotFoundException

Hierarchy

  • class \Prophecy\Exception\Doubler\DoubleException extends \RuntimeException implements \Prophecy\Exception\Doubler\DoublerException
    • class \Prophecy\Exception\Doubler\MethodNotFoundException extends \Prophecy\Exception\Doubler\DoubleException

Expanded class hierarchy of MethodNotFoundException

1 file declares its use of MethodNotFoundException
MethodProphecy.php in vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php

File

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

Namespace

Prophecy\Exception\Doubler
View source
class MethodNotFoundException extends DoubleException {
    
    /**
     * @var string|object
     */
    private $classname;
    
    /**
     * @var string
     */
    private $methodName;
    
    /**
     * @var null|ArgumentsWildcard|array<mixed>
     */
    private $arguments;
    
    /**
     * @param string $message
     * @param string|object $classname
     * @param string $methodName
     * @param null|ArgumentsWildcard|array<mixed> $arguments
     */
    public function __construct($message, $classname, $methodName, $arguments = null) {
        parent::__construct($message);
        $this->classname = $classname;
        $this->methodName = $methodName;
        $this->arguments = $arguments;
    }
    
    /**
     * @return object|string
     */
    public function getClassname() {
        return $this->classname;
    }
    
    /**
     * @return string
     */
    public function getMethodName() {
        return $this->methodName;
    }
    
    /**
     * @return null|ArgumentsWildcard|array<mixed>
     */
    public function getArguments() {
        return $this->arguments;
    }

}

Members

Title Sort descending Modifiers Object type Summary
MethodNotFoundException::$arguments private property
MethodNotFoundException::$classname private property
MethodNotFoundException::$methodName private property
MethodNotFoundException::getArguments public function
MethodNotFoundException::getClassname public function
MethodNotFoundException::getMethodName public function
MethodNotFoundException::__construct public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal