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\Utils\Encoding
8 * @copyright Dennis Eichhorn
9 * @license   OMS License 2.0
10 * @version   1.0.0
11 * @link      https://jingga.app
12 */
13declare(strict_types=1);
14
15namespace phpOMS\Utils\Encoding;
16
17/**
18 * Encoding Interface
19 *
20 * @package phpOMS\Utils\Encoding
21 * @license OMS License 2.0
22 * @link    https://jingga.app
23 * @since   1.0.0
24 */
25interface EncodingInterface
26{
27    /**
28     * Encode source text
29     *
30     * @param string $source Source text to decode
31     *
32     * @return string
33     *
34     * @since 1.0.0
35     */
36    public static function encode(mixed $source);
37
38    /**
39     * Dedecodes text
40     *
41     * @param string $decoded encoded text to dedecode
42     *
43     * @return string
44     *
45     * @since 1.0.0
46     */
47    public static function decode(mixed $decoded);
48}