Completed
Push — master ( cb34a7...a749c1 )
by Konstantin
02:38 queued 45s
created

MethodNotExtendableException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 7
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 7
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
    /**
3
     * Created by PhpStorm.
4
     * User: jeff
5
     * Date: 25/08/2015
6
     * Time: 19:14
7
     */
8
9
    namespace Prophecy\Exception\Doubler;
10
11 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...
12
    {
13
        private $methodName;
14
15
        private $className;
16
17
        /**
18
         * @param string $message
19
         * @param string $className
20
         * @param string $methodName
21
         */
22
        public function __construct($message, $className, $methodName)
23
        {
24
            parent::__construct($message);
25
26
            $this->methodName = $methodName;
27
            $this->className = $className;
28
        }
29
30
31
        /**
32
         * @return string
33
         */
34
        public function getMethodName()
35
        {
36
            return $this->methodName;
37
        }
38
39
        /**
40
         * @return string
41
         */
42
        public function getClassName()
43
        {
44
            return $this->className;
45
        }
46
47
    }
48