예제 #1
0
 private function canApproveProfile(Area $area)
 {
     $data = $area->getCustomData();
     if (!empty($data['positionLat']) && !empty($data['positionLng']) && !empty($data['ewcDate']) && !empty($data['ewcDate']['year'])) {
         if ($area->getPercentCompleteness() > self::REQUIRED_PROFILE_COMPLETENESS) {
             return true;
         }
     }
     return false;
 }