original_string: private function filterByKeys(array $keys)
      {
          $results = [];
  
          foreach ($this->items as $key => $value) {
              if (!in_array($key, $keys)) {
                  continue;
              }
  
              $results[$key] = $value;
          }
  
          return $results;
      }
code: private function filterByKeys(array $keys)
      {
          $results = [];
  
          foreach ($this->items as $key => $value) {
              if (!in_array($key, $keys)) {
                  continue;
              }
  
              $results[$key] = $value;
          }
  
          return $results;
      }
code_tokens: private function filterByKeys ( array $ keys ) { $ results = [ ] ; foreach ( $ this -> items as $ key => $ value ) { if ( ! in_array ( $ key , $ keys ) ) { continue ; } $ results [ $ key ] = $ value ; } return $ results ; }
docstring: Filter items by key name.
  
  @param array $keys
  
  @return array
docstring_tokens: Filter items by key name .