/**
  * Set the desired header text.
  *
  * The given text will be trimmed and enclosed into a multiline comment.
  * If the text is empty, when a file get fixed, the header comment will be
  * erased.
  *
  * @param string $header
  */
 public static function setHeader($header)
 {
     self::$header = trim((string) $header);
     self::$headerComment = '';
     if ('' !== self::$header) {
         self::$headerComment = self::encloseTextInComment(self::$header);
     }
 }
 /**
  * Sets the desired header text.
  *
  * The given text will be trimmed and enclosed into a multiline comment.
  * If the text is empty, when a file get fixed, the header comment will be
  * erased.
  *
  * @param string $header
  */
 public static function setHeader($header)
 {
     self::$header = trim((string) $header);
     if (strlen(self::$header)) {
         self::$headerComment = self::encloseTextInComment(self::$header);
     } else {
         self::$headerComment = '';
     }
 }
 /**
  * Sets the desired header text.
  *
  * The given text will be trimmed and enclosed into a multiline comment.
  * If the text is empty, when a file get fixed, the header comment will be
  * erased.
  *
  * @param string $header
  */
 public static function setHeader($header)
 {
     if (!is_string($header)) {
         throw new InvalidFixerConfigurationException('header_comment', sprintf('Header configuration is invalid. Expected "string", got "%s".', is_object($header) ? get_class($header) : gettype($header)));
     }
     self::$header = trim((string) $header);
     self::$headerComment = '';
     if ('' !== self::$header) {
         self::$headerComment = self::encloseTextInComment(self::$header);
     }
 }