original_string: public function setHeader(array $data): PdfInterface
      {
          $string_right = str_replace("{{date(\"n/d/Y g:i A\")}}", Carbon::now()->format('n/d/Y g:i A'), $data['right']);
          $string_left  = str_replace("|", '<br>', $data['left']);
  
          $html = "<table border='0' cellspacing='0' cellpadding='0' width='100%'><tr>
                       <td style='font-family:arial;font-size:14px;font-weight:bold;'>$string_left</td>
                       <td style='font-size:13px;font-family:arial;text-align:right;font-style:italic;'>$string_right</td>
                   </tr></table><br>";
  
          $this->setProperty('pageHeader', $html);
          $this->appendPageContent($this->pageHeader);
  
          return $this;
      }
code: public function setHeader(array $data): PdfInterface
      {
          $string_right = str_replace("{{date(\"n/d/Y g:i A\")}}", Carbon::now()->format('n/d/Y g:i A'), $data['right']);
          $string_left  = str_replace("|", '<br>', $data['left']);
  
          $html = "<table border='0' cellspacing='0' cellpadding='0' width='100%'><tr>
                       <td style='font-family:arial;font-size:14px;font-weight:bold;'>$string_left</td>
                       <td style='font-size:13px;font-family:arial;text-align:right;font-style:italic;'>$string_right</td>
                   </tr></table><br>";
  
          $this->setProperty('pageHeader', $html);
          $this->appendPageContent($this->pageHeader);
  
          return $this;
      }
code_tokens: public function setHeader ( array $ data ) : PdfInterface { $ string_right = str_replace ( "{{date(\"n/d/Y g:i A\")}}" , Carbon :: now ( ) -> format ( 'n/d/Y g:i A' ) , $ data [ 'right' ] ) ; $ string_left = str_replace ( "|" , '<br>' , $ data [ 'left' ] ) ; $ html = "<table border='0' cellspacing='0' cellpadding='0' width='100%'><tr>
                       <td style='font-family:arial;font-size:14px;font-weight:bold;'>$string_left</td>
                       <td style='font-size:13px;font-family:arial;text-align:right;font-style:italic;'>$string_right</td>
                   </tr></table><br>" ; $ this -> setProperty ( 'pageHeader' , $ html ) ; $ this -> appendPageContent ( $ this -> pageHeader ) ; return $ this ; }
docstring: Set the page header.
  
  @param array $data The list of header items ('left','right')
  
  @return PdfInterface The current instance
  
  @api
docstring_tokens: Set the page header .