Man who attacked boy in Wendy's sentenced