WordPress\AiClient\Messages\DTO

UserMessage::__constructpublicWP 0.1.0

Constructor.

Method of the class: UserMessage{}

No Hooks.

Returns

null. Nothing (null).

Usage

$UserMessage = new UserMessage();
$UserMessage->__construct( $parts );
$parts(MessagePart[]) (required)
The parts that make up this message.

Changelog

Since 0.1.0 Introduced.

UserMessage::__construct() code WP 7.0

public function __construct(array $parts)
{
    parent::__construct(MessageRoleEnum::user(), $parts);
}