original_string: private function writeAttributes( $file, $fields )
      {
          foreach ( $fields as $fieldName => $field )
          {
              fwrite( $file, "    /**\n" );
              fwrite( $file, "     * $fieldName\n" );
              fwrite( $file, "     *\n" );
              fwrite( $file, "     * @var {$this->translateType($field->type)}\n" );
              fwrite( $file, "     */\n" );
              fwrite( $file, "    private \$$fieldName;\n" );
          }
      }
code: private function writeAttributes( $file, $fields )
      {
          foreach ( $fields as $fieldName => $field )
          {
              fwrite( $file, "    /**\n" );
              fwrite( $file, "     * $fieldName\n" );
              fwrite( $file, "     *\n" );
              fwrite( $file, "     * @var {$this->translateType($field->type)}\n" );
              fwrite( $file, "     */\n" );
              fwrite( $file, "    private \$$fieldName;\n" );
          }
      }
code_tokens: private function writeAttributes ( $ file , $ fields ) { foreach ( $ fields as $ fieldName => $ field ) { fwrite ( $ file , "    /**\n" ) ; fwrite ( $ file , "     * $fieldName\n" ) ; fwrite ( $ file , "     *\n" ) ; fwrite ( $ file , "     * @var {$this->translateType($field->type)}\n" ) ; fwrite ( $ file , "     */\n" ) ; fwrite ( $ file , "    private \$$fieldName;\n" ) ; } }
docstring: Writes the list of attributes.
  
  @param resource $file
  @param array $fields
  @return void
docstring_tokens: Writes the list of attributes .