add phpdoc to public app.php method