# zip-ai/0.0.8/lib/php-mcp-schema/src/Common/Protocol/DTO/GetTaskPayloadResult.php

ZIP AI – AI Website Builder &amp; AI Agent (Beta), version 0.0.8. 67 lines.

- Page: https://pluginprobe.com/plugins/zip-ai/0.0.8/code/lib/php-mcp-schema/src/Common/Protocol/DTO/GetTaskPayloadResult.php
- Raw: https://pluginprobe.com/plugins/zip-ai/0.0.8/raw/lib/php-mcp-schema/src/Common/Protocol/DTO/GetTaskPayloadResult.php
- Modified: 2026-08-17T11:42:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/zip-ai/0.0.8/code/lib/php-mcp-schema/src/Common/Protocol/DTO/GetTaskPayloadResult.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace WP\McpSchema\Common\Protocol\DTO;

use WP\McpSchema\Client\Lifecycle\Union\ClientResultInterface;
use WP\McpSchema\Common\Traits\ValidatesRequiredFields;
use WP\McpSchema\Server\Lifecycle\Union\ServerResultInterface;

/**
 * The response to a tasks/result request.
 * The structure matches the result type of the original request.
 * For example, a tools/call task would return the CallToolResult structure.
 *
 * Note: This class is structurally identical to Result.
 * It exists as a separate type for semantic distinction per MCP specification.
 *
 * @since 2025-11-25
 *
 * @mcp-domain Common
 * @mcp-subdomain Protocol
 * @mcp-version 2025-11-25
 * @see Result
 */
class GetTaskPayloadResult extends Result implements ClientResultInterface, ServerResultInterface
{
    use ValidatesRequiredFields;

    /**
     * @param array<string, mixed>|null $_meta @since 2025-11-25
     */
    public function __construct(
        ?array $_meta = null
    ) {
        parent::__construct($_meta);
    }

    /**
     * Creates an instance from an array.
     *
     * @param array{
     *     _meta?: array<string, mixed>|null
     * } $data
     * @phpstan-param array<string, mixed> $data
     * @return self
     */
    public static function fromArray(array $data): self
    {
        return new self(
            self::asArrayOrNull($data['_meta'] ?? null)
        );
    }

    /**
     * Converts the instance to an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(): array
    {
        $result = parent::toArray();

        return $result;
    }
}

```
