_id = $dbRow['id']; $this->_title = $dbRow['title']; $this->_category = $dbRow['category']; $this->_status = $dbRow['status']; $this->_description = $dbRow['description']; $this->_houseNumber = $dbRow['houseNumber']; $this->_streetName = $dbRow['streetName']; $this->_county = $dbRow['county']; $this->_town = $dbRow['town']; $this->_postcode = $dbRow['postcode']; $this->_lng = $dbRow['lng']; $this->_lat = $dbRow['lat']; $this->_contributor = $dbRow['contributor']; } /** * Gets the facility's unique identifier * * This ID is used throughout the application to reference this specific * facility, particularly in database operations and API requests. * * @return int The facility ID */ public function getId() { return $this->_id; } /** * Gets the facility's title * @return string The facility title */ public function getTitle() { return $this->_title; } /** * Gets the facility's category * @return string The facility category */ public function getCategory() { return $this->_category; } /** * Gets the facility's current status * @return string The facility status */ public function getStatus() { return $this->_status; } /** * Gets the facility's description * @return string The facility description */ public function getDescription() { return $this->_description; } /** * Gets the facility's house/building number * @return string The house/building number */ public function getHouseNumber() { return $this->_houseNumber; } /** * Gets the facility's street name * @return string The street name */ public function getStreetName() { return $this->_streetName; } /** * Gets the facility's county * @return string The county */ public function getCounty() { return $this->_county; } /** * Gets the facility's town or city * @return string The town or city */ public function getTown() { return $this->_town; } /** * Gets the facility's postcode * @return string The postcode */ public function getPostcode() { return $this->_postcode; } /** * Gets the facility's longitude coordinate * @return float The longitude coordinate */ public function getLng() { return $this->_lng; } /** * Gets the facility's latitude coordinate * @return float The latitude coordinate */ public function getLat() { return $this->_lat; } /** * Gets the username of the facility's contributor * @return string The contributor's username */ public function getContributor() { return $this->_contributor; } }