src/Interfaces/Jsonable.php
<?php
declare(strict_types=1);
namespace Php\Support\Interfaces;
/**
* Interface Jsonable
*
* @package Php\Support\Interfaces
*/
interface Jsonable
{
/**
* @static
*
* @param string $string
*
* @return Jsonable
*/
public static function fromJson(string $string): ?Jsonable;
/**
* Convert the object to its JSON representation.
*
* @param int $options
*
* @return string|null
*/
public function toJson($options = 320): ?string;
}