1<?php
2
3    namespace Prophecy\Exception\Doubler;
4
5    class MethodNotExtendableException extends DoubleException
6    {
7        private $methodName;
8
9        private $className;
10
11        /**
12         * @param string $message
13         * @param string $className
14         * @param string $methodName
15         */
16        public function __construct($message, $className, $methodName)
17        {
18            parent::__construct($message);
19
20            $this->methodName = $methodName;
21            $this->className = $className;
22        }
23
24
25        /**
26         * @return string
27         */
28        public function getMethodName()
29        {
30            return $this->methodName;
31        }
32
33        /**
34         * @return string
35         */
36        public function getClassName()
37        {
38            return $this->className;
39        }
40
41    }
42