original_string: public static function record_from_handler($handler) {
          $record = new \stdClass();
          $record->id = $handler->id;
          $record->component = $handler->component;
          $record->classname = get_class($handler);
          if (strpos($record->classname, '\\') !== 0) {
              $record->classname = '\\' . $record->classname;
          }
          $record->defaultexpiration = $handler->defaultexpiration;
          $record->validateaddress = $handler->validateaddress;
          $record->enabled = $handler->enabled;
  
          return $record;
      }
code: public static function record_from_handler($handler) {
          $record = new \stdClass();
          $record->id = $handler->id;
          $record->component = $handler->component;
          $record->classname = get_class($handler);
          if (strpos($record->classname, '\\') !== 0) {
              $record->classname = '\\' . $record->classname;
          }
          $record->defaultexpiration = $handler->defaultexpiration;
          $record->validateaddress = $handler->validateaddress;
          $record->enabled = $handler->enabled;
  
          return $record;
      }
code_tokens: public static function record_from_handler ( $ handler ) { $ record = new \ stdClass ( ) ; $ record -> id = $ handler -> id ; $ record -> component = $ handler -> component ; $ record -> classname = get_class ( $ handler ) ; if ( strpos ( $ record -> classname , '\\' ) !== 0 ) { $ record -> classname = '\\' . $ record -> classname ; } $ record -> defaultexpiration = $ handler -> defaultexpiration ; $ record -> validateaddress = $ handler -> validateaddress ; $ record -> enabled = $ handler -> enabled ; return $ record ; }
docstring: Create a flat stdClass for the handler, appropriate for inserting
  into the database.
  
  @param \core\message\inbound\handler $handler The handler to retrieve the record for.
  @return \stdClass
docstring_tokens: Create a flat stdClass for the handler appropriate for inserting into the database .