/**
  * Write the constants of the class to the output file.
  * 
  * @param string $valueToTrim the string value to remove from each value in
  * $this->data array.
  */
 public function WriteConstants($valueToTrim = ".php")
 {
     $extractor = \Puzzlout\Framework\Helpers\ArrayExtractionHelper::Init()->ExtractDistinctValues($this->data);
     $output = "";
     foreach ($extractor->List as $constant) {
         if (\Puzzlout\Framework\Helpers\RegexHelper::Init($constant)->IsAPhpFilename()) {
             $output .= $this->WriteConstant($this->BuildConstantKeyValue($constant, $valueToTrim));
         } else {
             $output .= $this->WriteConstant($this->BuildConstantForFolderValue($constant));
         }
     }
     $output .= PhpCodeSnippets::LF;
     fwrite($this->writer, $output);
 }
 /**
  * Write the constants of the class to the output file.
  * 
  * @param string $valueToTrim the string value to remove from each value in
  * $this->data array.
  */
 public function WriteConstants($valueToTrim = ".php")
 {
     $extrator = \Puzzlout\Framework\Helpers\ArrayExtractionHelper::Init()->ExtractDistinctValues($this->data);
     $output = "";
     foreach ($extrator->List as $constant) {
         if (\Puzzlout\Framework\Helpers\RegexHelper::Init($constant)->IsResoureKeyValid()) {
             $output .= $this->WriteConstant($constant);
         }
     }
     $output .= PhpCodeSnippets::LF;
     fwrite($this->writer, $output);
 }