[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Messages/DTO/ -> UserMessage.php (summary)

(no description)

File Size: 31 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

UserMessage:: (1 method):
  __construct()


Class: UserMessage  - X-Ref

Represents a message from a user.

This is a convenience class that automatically sets the role to USER.

Important: Do not rely on `instanceof UserMessage` to determine the message role.
This is merely a helper class for construction. Always use `$message->getRole()`
to check the role of a message.

__construct(array $parts)   X-Ref
Constructor.

param: MessagePart[] $parts The parts that make up this message.



Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref