<?php
namespace Civi\CiUtil;
+/**
+ * Class ComparisonPrinter
+ *
+ * @package Civi\CiUtil
+ */
class ComparisonPrinter {
- var $headers;
- var $hasHeader = FALSE;
+ public $headers;
+ public $hasHeader = FALSE;
- function __construct($headers) {
+ /**
+ * @param $headers
+ */
+ public function __construct($headers) {
$this->headers = $headers;
}
- function printHeader() {
+ public function printHeader() {
if ($this->hasHeader) {
return;
}
$this->hasHeader = TRUE;
}
- function printRow($test, $values) {
+ /**
+ * @param $test
+ * @param $values
+ */
+ public function printRow($test, $values) {
$this->printHeader();
printf("%-90s ", $test);
foreach ($values as $value) {
}
print "\n";
}
-}
\ No newline at end of file
+
+}