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 * This file is part of the sshilko/php-sql-mydb package.
4 *
5 * (c) Sergei Shilko <contact@sshilko.com>
6 *
7 * MIT License
8 *
9 * For the full copyright and license information, please view the LICENSE
10 * file that was distributed with this source code.
11 * @license https://opensource.org/licenses/mit-license.php MIT
12 */
13
14declare(strict_types = 1);
15
16namespace sql\MydbInterface;
17
18/**
19 * @author Sergei Shilko <contact@sshilko.com>
20 * @license https://opensource.org/licenses/mit-license.php MIT
21 * @category interfaces
22 * @see https://github.com/sshilko/php-sql-mydb
23 * @phpcs:disable SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName
24 */
25interface EncoderInterface
26{
27    /**
28     * Escape value for the SQL query
29     *
30     * @param float|int|string|\sql\MydbExpressionInterface|null $unescaped
31     */
32    public function escape($unescaped, string $quote = "'"): string;
33}