1 | <?php |
||
9 | class Method |
||
10 | { |
||
11 | // visibility="public" complexity="2" crap="2.03" count="1" |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $methodName; |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $className; |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $namespace; |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $visibility; |
||
28 | /** |
||
29 | * @var float |
||
30 | */ |
||
31 | private $complexity; |
||
32 | /** |
||
33 | * @var float |
||
34 | */ |
||
35 | private $crap; |
||
36 | /** |
||
37 | * @var int |
||
38 | */ |
||
39 | private $count; |
||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | private $file; |
||
44 | /** |
||
45 | * @var int |
||
46 | */ |
||
47 | private $line; |
||
48 | |||
49 | public function __construct(string $methodName, string $className, string $namespace, float $complexity, float $crap, string $visibility = null, int $count = null, string $file = null, int $line = null) |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getMethodName(): string |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getClassName(): string |
||
78 | |||
79 | /** |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getNamespace(): string |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getVisibility(): string |
||
94 | |||
95 | /** |
||
96 | * @return float |
||
97 | */ |
||
98 | public function getComplexity(): float |
||
102 | |||
103 | /** |
||
104 | * @return float |
||
105 | */ |
||
106 | public function getCrap(): float |
||
110 | |||
111 | /** |
||
112 | * @return int |
||
113 | */ |
||
114 | public function getCount(): int |
||
118 | |||
119 | public function getFullName() : string |
||
123 | |||
124 | public function getShortName() : string |
||
128 | |||
129 | /** |
||
130 | * @return string |
||
131 | */ |
||
132 | public function getFile() |
||
136 | |||
137 | /** |
||
138 | * @return int |
||
139 | */ |
||
140 | public function getLine() |
||
144 | |||
145 | /** |
||
146 | * Merges the method passed in parameter in this method. |
||
147 | * Any non null property will override this object property. |
||
148 | * Return a NEW object. |
||
149 | * |
||
150 | * @param Method $method |
||
151 | */ |
||
152 | public function merge(Method $method): Method |
||
163 | } |
||
164 |