What is the relationship between the transit time and the distance of the exoplanet and its star?

a. The farther the planet is from the star, the longer the transit time will take.
b. The closer the planet is to the star, the longer the transit time will take.