The analytical formulation of a neoclassical resonant transport in a mirror