Php Declare Variable Type In Function In Java