Phaser collision

I need to make 2 sprites bounce when they collide each other, like
if (sprite1.collides(sprite2))
sprite1.bounce(1)
sprite2.bounce(2)

Look at this exemple: