Maybe something like setDirection(vertical|horizontal) should be better name for method and variable $direction = 'horizontal' or 'H'?