code: private function pairsToAssociative($pairs)
      {
          $result = [];
          foreach ($pairs as $pair) {
              $result[$pair[0]] = $pair[1];
          }
  
          return $result;
      }
docs: @param array $pairs
  
  @return array