MethodNotExtendableException::getMethodName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
    namespace Prophecy\Exception\Doubler;
4
5 View Code Duplication
    class MethodNotExtendableException extends DoubleException
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
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