$fruit = $_GET['fruit'];
if(isset($water)){
if($water=='blue'){
if($fruit=='banana'){
$fruit->get_eat();
}
}
}else{
if($fruit=='banana'){
$fruit->get_eat();
}
}
if($fruit=='banana'){
$fruit->get_eat();
}