socialbox-php/src/Socialbox/Interfaces/SerializableInterface.php

20 lines
No EOL
399 B
PHP

<?php
namespace Socialbox\Interfaces;
interface SerializableInterface
{
/**
* Constructs the object from an array of data.
*
* @param array $data The data to construct the object from.
*/
public static function fromArray(array $data): object;
/**
* Serializes the object to an array.
*
* @return array
*/
public function toArray(): array;
}