Update PVRouter.php

Adding a function for getting all the routes variables and fixing parameter on function