File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed
Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ parameters:
1818 - stubs/DBAL/Types/Type.stub
1919 - stubs/DBAL/Exception.stub
2020 - stubs/DBAL/Result.stub
21+ - stubs/DBAL/Statement.stub
2122 - stubs/DocumentManager.stub
2223 - stubs/DocumentRepository.stub
2324 - stubs/EntityManager.stub
Original file line number Diff line number Diff line change @@ -10,6 +10,15 @@ use Throwable;
1010
1111class Connection
1212{
13+ /**
14+ * Prepares an SQL statement.
15+ *
16+ * @param __doctrine-literal-string $sql The SQL statement to prepare.
17+ *
18+ * @throws Exception
19+ */
20+ public function prepare(string $sql): Statement;
21+
1322 /**
1423 * Executes an SQL statement with the given parameters and returns the number of affected rows.
1524 *
Original file line number Diff line number Diff line change @@ -14,6 +14,15 @@ use Throwable;
1414 */
1515class Connection
1616{
17+ /**
18+ * Prepares an SQL statement.
19+ *
20+ * @param __doctrine-literal-string $sql The SQL statement to prepare.
21+ *
22+ * @throws Exception
23+ */
24+ public function prepare(string $sql): Statement;
25+
1726 /**
1827 * Executes an SQL statement with the given parameters and returns the number of affected rows.
1928 *
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Doctrine\DBAL;
4+
5+ class Statement
6+ {
7+
8+ }
You can’t perform that action at this time.
0 commit comments