Man sentenced for cruelty to dog and rat