• File: CreateMessageRequest.php
  • Full Path: /home/slvgwrnz/public_html/wp-content/plugins/elementor/vendor/wordpress/php-mcp-schema/src/Record/CreateMessageRequest.php
  • Date Modified: 11/05/2026 9:17 AM
  • File size: 1.35 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

/**
 * This file is generated. Do not edit it directly.
 */

declare(strict_types=1);

namespace WP\McpSchema\Record;

final class CreateMessageRequest extends \WP\McpSchema\Record implements \WP\McpSchema\Contract\InputRequest, \WP\McpSchema\Contract\ServerRequest
{
    public const DEFINITION = 'CreateMessageRequest';

    /**
     * Declared in: 2025-11-25.
     *
     * @return float|int|null|string
     */
    public function getId()
    {
        /** @var float|int|null|string $value */
        $value = $this->declaredValue('id');

        return $value;
    }

    /**
     * Declared in: 2025-11-25.
     *
     * @return '2.0'|null
     */
    public function getJsonrpc(): ?string
    {
        /** @var '2.0'|null $value */
        $value = $this->declaredValue('jsonrpc');

        return $value;
    }

    /**
     * @return 'sampling/createMessage'
     */
    public function getMethod(): string
    {
        /** @var 'sampling/createMessage' $value */
        $value = $this->declaredValue('method');

        return $value;
    }

    /**
     * @return \WP\McpSchema\Record\CreateMessageRequestParams
     */
    public function getParams(): \WP\McpSchema\Record\CreateMessageRequestParams
    {
        /** @var \WP\McpSchema\Record\CreateMessageRequestParams $value */
        $value = $this->declaredValue('params');

        return $value;
    }
}