| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | function _getMethods() |
||
|
|
|||
| 14 | { |
||
| 15 | return array( |
||
| 16 | 'method1' => array( |
||
| 17 | 'args' => array(), |
||
| 18 | 'return' => 'void', |
||
| 19 | ), |
||
| 20 | 'methodString' => array( |
||
| 21 | 'args' => array(), |
||
| 22 | 'return' => 'string', |
||
| 23 | ), |
||
| 24 | 'method2' => array( |
||
| 25 | 'args' => array('string', 'int'), |
||
| 26 | 'return' => 'array', |
||
| 27 | 'name' => 'method2', |
||
| 28 | ), |
||
| 29 | 'method2ext' => array( |
||
| 30 | 'args' => array('string', 'int', 'bool'), |
||
| 31 | 'return' => 'array', |
||
| 32 | 'name' => 'method2', |
||
| 33 | ), |
||
| 34 | 'publicCall' => array( |
||
| 35 | 'args' => array(), |
||
| 36 | 'return' => 'boolean', |
||
| 37 | 'doc' => 'testing for public access', |
||
| 38 | 'name' => 'publicCall', |
||
| 39 | 'public' => 1, |
||
| 40 | ), |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | |||
| 68 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.