Issues (20)

src/framework/PreparedStatement.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace mindplay\sql\framework;
4
5
use mindplay\sql\exceptions\SQLException;
6
7
/**
8
 * This interface defines the prepared SQL statement model.
9
 */
10
interface PreparedStatement
11
{
12
    /**
13
     * Bind an individual placeholder name to a given scalar (int|float|string|bool|null) value.
14
     *
15
     * @param $name  placeholder name
0 ignored issues
show
The type mindplay\sql\framework\placeholder was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
16
     * @param $value scalar value
17
     */
18
    public function bind(string $name, int|float|string|bool|null $value): void;
19
20
    /**
21
     * Executes the underlying SQL statement.
22
     *
23
     * @throws SQLException on failure to execute the underlying SQL statement
24
     */
25
    public function execute(): void;
26
27
    /**
28
     * Fetches the next record from the result set and advances the cursor.
29
     *
30
     * @return array<string,mixed>|null next record-set (or NULL, if no more records are available)
31
     */
32
    public function fetch(): array|null;
33
34
    /**
35
     * @return int number of rows affected by a non-returning query (e.g. INSERT, UPDATE or DELETE)
36
     */
37
    public function getRowsAffected(): int;
38
}
39