1 | <?php |
||
5 | class CriteriaGenerator extends Generator |
||
6 | { |
||
7 | /** |
||
8 | * Get stub name. |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $stub = 'criteria/criteria'; |
||
13 | |||
14 | /** |
||
15 | * Get root namespace. |
||
16 | * |
||
17 | * @return string |
||
18 | */ |
||
19 | public function getRootNamespace() |
||
23 | |||
24 | /** |
||
25 | * Get generator path config node. |
||
26 | * @return string |
||
27 | */ |
||
28 | public function getPathConfigNode() |
||
32 | |||
33 | /** |
||
34 | * Get destination path for generated file. |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getPath() |
||
42 | |||
43 | /** |
||
44 | * Get base path of destination file. |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getBasePath() |
||
52 | } |
||
53 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.