District::getPrevDistrict - jcobban/Genealogy GitHub Wiki

$district->getPrevDistrict()

Up: class District

This factory method is used to obtain the instance of District representing the District which immediately precedes the current District within the current Census. Districts are identified by a number.

This returns an instance of District if the current District is not the District with the lowest numeric identifier, that is 1, otherwise it returns null.

$prevDistrict              = $district->getPrevDistrict();

Next: $district->getNextDistrict()