original_string: private function setHeaderAttributes(array $mailHeader)
      {
          $mailHeader = array_filter($mailHeader, function ($property) {
              return property_exists($this, $property);
          }, ARRAY_FILTER_USE_KEY);
  
          foreach ($mailHeader as $property => $header) {
              $this->{$property} = $header;
          }
      }
code: private function setHeaderAttributes(array $mailHeader)
      {
          $mailHeader = array_filter($mailHeader, function ($property) {
              return property_exists($this, $property);
          }, ARRAY_FILTER_USE_KEY);
  
          foreach ($mailHeader as $property => $header) {
              $this->{$property} = $header;
          }
      }
code_tokens: private function setHeaderAttributes ( array $ mailHeader ) { $ mailHeader = array_filter ( $ mailHeader , function ( $ property ) { return property_exists ( $ this , $ property ) ; } , ARRAY_FILTER_USE_KEY ) ; foreach ( $ mailHeader as $ property => $ header ) { $ this -> { $ property } = $ header ; } }
docstring: Set attributes on email from header
  
  @param array $mailHeader
  @return void
docstring_tokens: Set attributes on email from header