Skip to content

Commit

Permalink
Simplified Response hierarchy for the Geo Reference endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Devenport authored and Eric Devenport committed Aug 1, 2024
1 parent fa55e98 commit cfcc324
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/US_Enrichment/GeoReferenceAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,24 @@ public function __construct($obj = null) {
$this->createCoreBasedStatArea(ArrayUtil::setField($obj, "core_based_stat_area"));
$this->createPlace(ArrayUtil::setField($obj, "place"));
}

private function createCensusBlock($censusBlockArray){
$this->censusBlock[] = new CensusBlockEntry($censusBlockArray);
$this->censusBlock = new CensusBlockEntry($censusBlockArray);
}

private function createCensusCountyDivision($censusCountyDivisionArray){
$this->censusCountyDivision[] = new CensusCountyDivisionEntry($censusCountyDivisionArray);
$this->censusCountyDivision = new CensusCountyDivisionEntry($censusCountyDivisionArray);
}

private function createCensusTract($censusTractArray){
$this->censusTract[] = new CensusTractEntry($censusTractArray);
$this->censusTract = new CensusTractEntry($censusTractArray);
}

private function createCoreBasedStatArea($coreBasedStatAreaArray){
$this->coreBasedStatArea[] = new CoreBasedStatAreaEntry($coreBasedStatAreaArray);
$this->coreBasedStatArea = new CoreBasedStatAreaEntry($coreBasedStatAreaArray);
}

private function createPlace($placeArray){
$this->place[] = new PlaceEntry($placeArray);
$this->place = new PlaceEntry($placeArray);
}
}

0 comments on commit cfcc324

Please sign in to comment.