WordPress at a glance
function is not described

WP_Comment::__construct() public WP 4.4.0

Constructor.

Populates properties with object vars.

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

No Hooks.

Return

Null. Nothing.

Usage

$WP_Comment = new WP_Comment();
$WP_Comment->__construct( $comment );
$comment(WP_Comment) (required)
Comment object.

Changelog

Since 4.4.0 Introduced.

Code of WP_Comment::__construct() WP 5.5.1

<?php
public function __construct( $comment ) {
	foreach ( get_object_vars( $comment ) as $key => $value ) {
		$this->$key = $value;
	}
}