WordPress\AiClient\Messages\DTO

MessagePart::getChannelpublicWP 0.1.0

Gets the channel this message part belongs to.

Method of the class: MessagePart{}

No Hooks.

Returns

MessagePartChannelEnum. The channel.

Usage

$MessagePart = new MessagePart();
$MessagePart->getChannel(): MessagePartChannelEnum;

Changelog

Since 0.1.0 Introduced.

MessagePart::getChannel() code WP 7.0

public function getChannel(): MessagePartChannelEnum
{
    return $this->channel;
}