| @@ 5-41 (lines=37) @@ | ||
| 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 | ||
| @@ 14-41 (lines=28) @@ | ||
| 11 | ||
| 12 | namespace Prophecy\Exception\Doubler; |
|
| 13 | ||
| 14 | class ReturnByReferenceException extends DoubleException |
|
| 15 | { |
|
| 16 | private $classname; |
|
| 17 | private $methodName; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * @param string $message |
|
| 21 | * @param string $classname |
|
| 22 | * @param string $methodName |
|
| 23 | */ |
|
| 24 | public function __construct($message, $classname, $methodName) |
|
| 25 | { |
|
| 26 | parent::__construct($message); |
|
| 27 | ||
| 28 | $this->classname = $classname; |
|
| 29 | $this->methodName = $methodName; |
|
| 30 | } |
|
| 31 | ||
| 32 | public function getClassname() |
|
| 33 | { |
|
| 34 | return $this->classname; |
|
| 35 | } |
|
| 36 | ||
| 37 | public function getMethodName() |
|
| 38 | { |
|
| 39 | return $this->methodName; |
|
| 40 | } |
|
| 41 | } |
|
| 42 | ||