| 1 | <?php |
||
| 17 | abstract class ArrayLoader implements ArrayLoaderInterface |
||
| 18 | { |
||
| 19 | // to convert method name |
||
| 20 | protected $internalMethod = 'walkInternal'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Loads an array of resource. |
||
| 24 | * |
||
| 25 | * @param array $resource an array loaded from the file. |
||
| 26 | * |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | 6 | public function load(array $resource) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Walks all leaves converting. |
||
| 38 | * |
||
| 39 | * @param array &$config |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | 6 | protected function walkAllLeaves(&$config) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Walks all leaves converting internal processing. |
||
| 50 | * |
||
| 51 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
| 52 | * @note implement child class |
||
| 53 | * @param string &$value |
||
| 54 | * @param string $nouse |
||
| 55 | * |
||
| 56 | * @return void |
||
| 57 | */ |
||
| 58 | 1 | protected function walkInternal(&$value, $nouse) |
|
| 61 | |||
| 62 | /** |
||
| 63 | * Gets a transform internal method. |
||
| 64 | * |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | 4 | protected function getInternalMethod() |
|
| 71 | } |
||
| 72 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.