A super easy PHP Framework for web development!
https://github.com/exacti/phacil-framework
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
806 B
39 lines
806 B
3 years ago
|
<?php
|
||
|
/**
|
||
|
* Copyright © 2022 ExacTI Technology Solutions. All rights reserved.
|
||
|
* GPLv3 General License.
|
||
|
* https://exacti.com.br
|
||
|
* Phacil PHP Framework - https://github.com/exacti/phacil-framework
|
||
|
* @author Bruno O. Notario <bruno@exacti.com.br>
|
||
|
*/
|
||
|
|
||
|
namespace Phacil\Framework\Interfaces;
|
||
|
|
||
|
/**
|
||
|
* Interface for serializing
|
||
|
*
|
||
|
* @api
|
||
|
* @since 2.0.0
|
||
|
*/
|
||
|
interface Serializer
|
||
|
{
|
||
|
/**
|
||
|
* Serialize data into string
|
||
|
*
|
||
|
* @param string|int|float|bool|array|null $data
|
||
|
* @return string|bool
|
||
|
* @throws \InvalidArgumentException
|
||
|
* @since 2.0.0
|
||
|
*/
|
||
|
public function serialize($data);
|
||
|
|
||
|
/**
|
||
|
* Unserialize the given string
|
||
|
*
|
||
|
* @param string $string
|
||
|
* @return string|int|float|bool|array|null
|
||
|
* @throws \InvalidArgumentException
|
||
|
* @since 2.0.0
|
||
|
*/
|
||
|
public function unserialize($string);
|
||
|
}
|