Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * Jingga |
| 4 | * |
| 5 | * PHP Version 8.1 |
| 6 | * |
| 7 | * @package phpOMS\Contract |
| 8 | * @copyright Dennis Eichhorn |
| 9 | * @license OMS License 2.0 |
| 10 | * @version 1.0.0 |
| 11 | * @link https://jingga.app |
| 12 | */ |
| 13 | declare(strict_types=1); |
| 14 | |
| 15 | namespace phpOMS\Contract; |
| 16 | |
| 17 | /** |
| 18 | * Make a class Serializable. |
| 19 | * |
| 20 | * This is primarily used for classes that provide formatted output or output, |
| 21 | * that get rendered. |
| 22 | * |
| 23 | * @package phpOMS\Contract |
| 24 | * @license OMS License 2.0 |
| 25 | * @link https://jingga.app |
| 26 | * @since 1.0.0 |
| 27 | */ |
| 28 | interface SerializableInterface |
| 29 | { |
| 30 | /** |
| 31 | * Serialize object |
| 32 | * |
| 33 | * @return string |
| 34 | * |
| 35 | * @since 1.0.0 |
| 36 | */ |
| 37 | public function serialize() : string; |
| 38 | |
| 39 | /** |
| 40 | * Fill object with data |
| 41 | * |
| 42 | * @param null|int|float|string|bool $data Date to unserialize |
| 43 | * |
| 44 | * @return void |
| 45 | * |
| 46 | * @since 1.0.0 |
| 47 | */ |
| 48 | public function unserialize(mixed $data) : void; |
| 49 | } |