| 1 | <?php namespace Mascame\Artificer\Options; |
||
| 5 | class PluginOption |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | public $namespace; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | public $configFile; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param $namespace |
||
| 20 | */ |
||
| 21 | public function __construct($namespace, $configFile) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $plugin |
||
|
|
|||
| 30 | * @param string $key |
||
| 31 | */ |
||
| 32 | public function get($key = null, $configFile = null) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $plugin |
||
| 39 | */ |
||
| 40 | public function has($key = '', $configFile = null) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $plugin |
||
| 47 | */ |
||
| 48 | public function set($key, $value, $configFile = null) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param string $key |
||
| 55 | */ |
||
| 56 | public function all($key = null, $configFile = null) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param null $configFile |
||
| 63 | * @return null|string |
||
| 64 | */ |
||
| 65 | protected function getFile($configFile = null) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @param $file |
||
| 72 | */ |
||
| 73 | public function setConfigFile($file) |
||
| 77 | |||
| 78 | public function getPrefix($configFile = null) |
||
| 82 | } |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.