1 | <?php namespace Comodojo\Foundation\Base; |
||
22 | abstract class AbstractVersion { |
||
23 | |||
24 | use ConfigurationTrait; |
||
25 | |||
26 | /** |
||
27 | * Component name |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $name; |
||
32 | |||
33 | /** |
||
34 | * Component brief description |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $description; |
||
39 | |||
40 | /** |
||
41 | * Current version |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $version; |
||
46 | |||
47 | /** |
||
48 | * Ascii fancy logo |
||
49 | * |
||
50 | * @var string |
||
51 | */ |
||
52 | protected $ascii; |
||
53 | |||
54 | /** |
||
55 | * Prefix for configuration item names |
||
56 | * |
||
57 | * @var string |
||
58 | */ |
||
59 | protected $prefix; |
||
60 | |||
61 | /** |
||
62 | * Template for full-description; |
||
63 | * |
||
64 | * @var string |
||
65 | */ |
||
66 | protected $template = "\n{ascii}\n{description} ({version})\n"; |
||
67 | |||
68 | /** |
||
69 | * Create a version identifier class |
||
70 | * |
||
71 | * @param Configuration|null $configuration |
||
72 | * @param string $prefix |
||
|
|||
73 | */ |
||
74 | 2 | public function __construct(Configuration $configuration = null) { |
|
79 | |||
80 | /** |
||
81 | * Get the version name |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | 2 | public function getName() { |
|
92 | |||
93 | /** |
||
94 | * Get the version description |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | 2 | public function getDescription() { |
|
105 | |||
106 | /** |
||
107 | * Get the current version |
||
108 | * |
||
109 | * @return string |
||
110 | */ |
||
111 | 1 | public function getVersion() { |
|
118 | |||
119 | /** |
||
120 | * Get the version ascii |
||
121 | * |
||
122 | * @return string |
||
123 | */ |
||
124 | 1 | public function getAscii() { |
|
131 | |||
132 | /** |
||
133 | * Return a composed-version of nominal values |
||
134 | * |
||
135 | * @return string |
||
136 | */ |
||
137 | public function getFullDescription() { |
||
147 | |||
148 | 2 | private function getConfigurationOverride($item) { |
|
155 | |||
156 | } |
||
157 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.