diff options
Diffstat (limited to 'vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotExtendableException.php')
-rw-r--r-- | vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotExtendableException.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotExtendableException.php b/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotExtendableException.php new file mode 100644 index 000000000..56f47b110 --- /dev/null +++ b/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotExtendableException.php @@ -0,0 +1,41 @@ +<?php + + namespace Prophecy\Exception\Doubler; + + class MethodNotExtendableException extends DoubleException + { + private $methodName; + + private $className; + + /** + * @param string $message + * @param string $className + * @param string $methodName + */ + public function __construct($message, $className, $methodName) + { + parent::__construct($message); + + $this->methodName = $methodName; + $this->className = $className; + } + + + /** + * @return string + */ + public function getMethodName() + { + return $this->methodName; + } + + /** + * @return string + */ + public function getClassName() + { + return $this->className; + } + + } |