Merge pull request #4500 from colemanw/CRM-15346
[civicrm-core.git] / CRM / Event / Badge.php
index 0f75239f05bf3fceac40b4955059768bb1027875..104bcff1740dbf2b4764c28f5c3d41dd8425a3f3 100644 (file)
@@ -43,6 +43,9 @@
  *
  */
 class CRM_Event_Badge {
+  /**
+   *
+   */
   function __construct() {
     $this->style        = array('width' => 0.1, 'cap' => 'round', 'join' => 'round', 'dash' => '2,2', 'color' => array(0, 0, 200));
     $this->format       = '5160';
@@ -52,6 +55,9 @@ class CRM_Event_Badge {
     $this->setDebug(FALSE);
   }
 
+  /**
+   * @param bool $debug
+   */
   function setDebug($debug = TRUE) {
     if (!$debug) {
       $this->debug = FALSE;
@@ -82,6 +88,11 @@ class CRM_Event_Badge {
     CRM_Utils_System::civiExit(1);
   }
 
+  /**
+   * @param $eventID
+   *
+   * @return CRM_Event_BAO_Event|null
+   */
   protected function retrieveEvent($eventID) {
     $bao = new CRM_Event_BAO_Event();
     if ($bao->get('id', $eventID)) {
@@ -90,6 +101,12 @@ class CRM_Event_Badge {
     return NULL;
   }
 
+  /**
+   * @param $eventID
+   * @param bool $img
+   *
+   * @return string
+   */
   function getImageFileName($eventID, $img = FALSE) {
     global $civicrm_root;
     $path = "CRM/Event/Badge";
@@ -119,6 +136,9 @@ class CRM_Event_Badge {
     return $imgFile;
   }
 
+  /**
+   * @param bool $img
+   */
   function printBackground($img = FALSE) {
     $x = $this->pdf->GetAbsX();
     $y = $this->pdf->GetY();