alexdodonov /
mezon-application
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Mezon\Application\Tests; |
||
| 4 | |||
| 5 | /** |
||
| 6 | * Application for testing purposes. |
||
| 7 | */ |
||
| 8 | class TestApplication extends \Mezon\Application\Application |
||
| 9 | { |
||
| 10 | |||
| 11 | function actionExisting() |
||
|
0 ignored issues
–
show
|
|||
| 12 | { |
||
| 13 | /* existing action */ |
||
| 14 | return 'OK!'; |
||
| 15 | } |
||
| 16 | |||
| 17 | function compound() |
||
|
0 ignored issues
–
show
|
|||
| 18 | { |
||
| 19 | return 'compond'; |
||
| 20 | } |
||
| 21 | } |
||
| 22 |
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.