Skip to content

District::getPrevDistrict

James Cobban edited this page Nov 27, 2019 · 1 revision

$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()

Clone this wiki locally