# zip-ai/0.0.8/lib/php-mcp-schema/src/Common/Contracts/WithArrayTransformationInterface.php

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

- Page: https://pluginprobe.com/plugins/zip-ai/0.0.8/code/lib/php-mcp-schema/src/Common/Contracts/WithArrayTransformationInterface.php
- Raw: https://pluginprobe.com/plugins/zip-ai/0.0.8/raw/lib/php-mcp-schema/src/Common/Contracts/WithArrayTransformationInterface.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/Contracts/WithArrayTransformationInterface.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace WP\McpSchema\Common\Contracts;

/**
 * Interface for objects that support array transformation.
 *
 * @mcp-version 2025-11-25
 */
interface WithArrayTransformationInterface
{
    /**
     * Converts the object to an array representation.
     *
     * @return array<string, mixed> The array representation.
     */
    public function toArray(): array;

    /**
     * Creates an instance from array data.
     *
     * @param array<string, mixed> $data The array data.
     * @return static The created instance.
     */
    public static function fromArray(array $data);
}

```
