Esempio n. 1
0
 /**
  * Render the method definition
  */
 private static function render_method_definition($Method)
 {
     $Title = "<span class='tooltip' title='" . Testing::get_method_comment($Method) . "'>" . $Method->getName() . "</span> (";
     foreach ($Method->getParameters() as $Parameter) {
         $Color = "red";
         if ($Parameter->isDefaultValueAvailable()) {
             $Color = "green";
         }
         $Title .= "<span style='color: {$Color}'>";
         $Title .= "\$" . $Parameter->getName();
         if ($Parameter->isDefaultValueAvailable()) {
             $Title .= " = " . $Parameter->getDefaultValue();
         }
         $Title .= "</span>";
         $Title .= ", ";
     }
     $Title = rtrim($Title, ", ");
     $Title .= ")";
     return $Title;
 }