original_string: protected function filterRow(RowInterface $row): RowInterface
      {
          if (empty($this->getFields())) {
              return $row;
          }
          $fields = array_keys($row->toArray());
          $toDelete = array_diff($fields, $this->getFields());
  
          foreach ($toDelete as $field) {
              unset($row->$field);
          }
          return $row;
      }
code: protected function filterRow(RowInterface $row): RowInterface
      {
          if (empty($this->getFields())) {
              return $row;
          }
          $fields = array_keys($row->toArray());
          $toDelete = array_diff($fields, $this->getFields());
  
          foreach ($toDelete as $field) {
              unset($row->$field);
          }
          return $row;
      }
code_tokens: protected function filterRow ( RowInterface $ row ) : RowInterface { if ( empty ( $ this -> getFields ( ) ) ) { return $ row ; } $ fields = array_keys ( $ row -> toArray ( ) ) ; $ toDelete = array_diff ( $ fields , $ this -> getFields ( ) ) ; foreach ( $ toDelete as $ field ) { unset ( $ row -> $ field ) ; } return $ row ; }
docstring: Filter output Row
  
  @param RowInterface $row from database
  
  @return RowInterface
docstring_tokens: Filter output Row