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\IO
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\IO;
16
17/**
18 * IO database mapper.
19 *
20 * @package phpOMS\Utils\IO
21 * @license OMS License 2.0
22 * @link    https://jingga.app
23 * @since   1.0.0
24 */
25interface IODatabaseMapper
26{
27    /**
28     * Insert data from excel sheet into database
29     *
30     * @return void
31     *
32     * @since 1.0.0
33     */
34    public function insert() : void;
35
36    /**
37     * Select data from database and store in excel sheet
38     *
39     * @param \phpOMS\DataStorage\Database\Query\Builder[] $queries Queries to execute
40     *
41     * @return void
42     *
43     * @since 1.0.0
44     */
45    public function select(array $queries) : void;
46
47    /**
48     * Update data from excel sheet into database
49     *
50     * @return void
51     *
52     * @since 1.0.0
53     */
54    public function update() : void;
55}