Merge pull request #13979 from totten/master-phpcbf-2
[civicrm-core.git] / Civi / CiUtil / CsvPrinter.php
index 8d4a73fac9d9456b5dc3c7c5a4f0c90ab055a26f..4c4ec185a3efbd5d542725af792503a1549dbbbf 100644 (file)
@@ -1,11 +1,20 @@
 <?php
 namespace Civi\CiUtil;
 
+/**
+ * Class CsvPrinter
+ *
+ * @package Civi\CiUtil
+ */
 class CsvPrinter {
   var $file;
   var $headers;
   var $hasHeader = FALSE;
 
+  /**
+   * @param $file
+   * @param $headers
+   */
   public function __construct($file, $headers) {
     $this->file = fopen($file, "w");
     $this->headers = $headers;
@@ -23,10 +32,15 @@ class CsvPrinter {
     $this->hasHeader = TRUE;
   }
 
+  /**
+   * @param $test
+   * @param $values
+   */
   public function printRow($test, $values) {
     $this->printHeader();
     $row = $values;
     array_unshift($row, $test);
     fputcsv($this->file, $row);
   }
+
 }