WordPress at a glance
function is not described

WP_Comment::__get() public WP 4.4.0

Magic getter.

If $name matches a post field, the comment post will be loaded and the post's value returned.

It's a method of the class: WP_Comment{}

No Hooks.

Return

Mixed.

Usage

$WP_Comment = new WP_Comment();
$WP_Comment->__get( $name );
$name(string) (required)

Changelog

Since 4.4.0 Introduced.

Code of WP_Comment::__get() WP 5.5.1

<?php
public function __get( $name ) {
	if ( in_array( $name, $this->post_fields, true ) ) {
		$post = get_post( $this->comment_post_ID );
		return $post->$name;
	}
}