original_string: final public function to_record() {
          $data = new stdClass();
          $properties = static::properties_definition();
          foreach ($properties as $property => $definition) {
              $data->$property = $this->raw_get($property);
          }
          return $data;
      }
code: final public function to_record() {
          $data = new stdClass();
          $properties = static::properties_definition();
          foreach ($properties as $property => $definition) {
              $data->$property = $this->raw_get($property);
          }
          return $data;
      }
code_tokens: final public function to_record ( ) { $ data = new stdClass ( ) ; $ properties = static :: properties_definition ( ) ; foreach ( $ properties as $ property => $ definition ) { $ data -> $ property = $ this -> raw_get ( $ property ) ; } return $ data ; }
docstring: Create a DB record from this class.
  
  Note that this does not use any custom getter because the data here is intended to
  represent what is stored in the database.
  
  @return \stdClass
docstring_tokens: Create a DB record from this class .