[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Common/Contracts/ -> WithArrayTransformationInterface.php (summary)

(no description)

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

Defines 1 class

WithArrayTransformationInterface:: (3 methods):
  toArray()
  fromArray()
  isArrayShape()


Interface: WithArrayTransformationInterface  - X-Ref

Interface for objects that support array transformation.

toArray()   X-Ref
Converts the object to an array representation.

return: TArrayShape The array representation.

fromArray(array $array)   X-Ref
Creates an instance from array data.

return: self<TArrayShape> The created instance.
param: TArrayShape $array The array data.

isArrayShape(array $array)   X-Ref
Checks if the array is a valid shape for this object.

return: bool True if the array is a valid shape.
param: array<mixed> $array The array to check.



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