Optomechanical Transistor With Phonons and Photons