Man gets 25 years in brick attack