Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
b544fd86
Unverified
Commit
b544fd86
authored
Jul 03, 2020
by
Sergei Morozov
Committed by
GitHub
Jul 03, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4140 from morozov/result-constructor-internal
Mark result constructors internal
parents
4f578bea
71cfb58a
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
0 deletions
+17
-0
Result.php
src/Driver/IBMDB2/Result.php
+2
-0
Result.php
src/Driver/Mysqli/Result.php
+2
-0
Result.php
src/Driver/OCI8/Result.php
+2
-0
Result.php
src/Driver/PDO/Result.php
+3
-0
Result.php
src/Driver/SQLSrv/Result.php
+2
-0
Result.php
src/Portability/Result.php
+3
-0
Result.php
src/Result.php
+3
-0
No files found.
src/Driver/IBMDB2/Result.php
View file @
b544fd86
...
@@ -21,6 +21,8 @@ final class Result implements ResultInterface
...
@@ -21,6 +21,8 @@ final class Result implements ResultInterface
private
$statement
;
private
$statement
;
/**
/**
* @internal The result can be only instantiated by its driver connection or statement.
*
* @param resource $statement
* @param resource $statement
*/
*/
public
function
__construct
(
$statement
)
public
function
__construct
(
$statement
)
...
...
src/Driver/Mysqli/Result.php
View file @
b544fd86
...
@@ -43,6 +43,8 @@ final class Result implements ResultInterface
...
@@ -43,6 +43,8 @@ final class Result implements ResultInterface
private
$boundValues
=
[];
private
$boundValues
=
[];
/**
/**
* @internal The result can be only instantiated by its driver connection or statement.
*
* @throws Exception
* @throws Exception
*/
*/
public
function
__construct
(
mysqli_stmt
$statement
)
public
function
__construct
(
mysqli_stmt
$statement
)
...
...
src/Driver/OCI8/Result.php
View file @
b544fd86
...
@@ -26,6 +26,8 @@ final class Result implements ResultInterface
...
@@ -26,6 +26,8 @@ final class Result implements ResultInterface
private
$statement
;
private
$statement
;
/**
/**
* @internal The result can be only instantiated by its driver connection or statement.
*
* @param resource $statement
* @param resource $statement
*/
*/
public
function
__construct
(
$statement
)
public
function
__construct
(
$statement
)
...
...
src/Driver/PDO/Result.php
View file @
b544fd86
...
@@ -17,6 +17,9 @@ final class Result implements ResultInterface
...
@@ -17,6 +17,9 @@ final class Result implements ResultInterface
/** @var PDOStatement */
/** @var PDOStatement */
private
$statement
;
private
$statement
;
/**
* @internal The result can be only instantiated by its driver connection or statement.
*/
public
function
__construct
(
PDOStatement
$statement
)
public
function
__construct
(
PDOStatement
$statement
)
{
{
$this
->
statement
=
$statement
;
$this
->
statement
=
$statement
;
...
...
src/Driver/SQLSrv/Result.php
View file @
b544fd86
...
@@ -21,6 +21,8 @@ final class Result implements ResultInterface
...
@@ -21,6 +21,8 @@ final class Result implements ResultInterface
private
$statement
;
private
$statement
;
/**
/**
* @internal The result can be only instantiated by its driver connection or statement.
*
* @param resource $stmt
* @param resource $stmt
*/
*/
public
function
__construct
(
$stmt
)
public
function
__construct
(
$stmt
)
...
...
src/Portability/Result.php
View file @
b544fd86
...
@@ -14,6 +14,9 @@ final class Result implements ResultInterface
...
@@ -14,6 +14,9 @@ final class Result implements ResultInterface
/** @var Converter */
/** @var Converter */
private
$converter
;
private
$converter
;
/**
* @internal The result can be only instantiated by the portability connection or statement.
*/
public
function
__construct
(
ResultInterface
$result
,
Converter
$converter
)
public
function
__construct
(
ResultInterface
$result
,
Converter
$converter
)
{
{
$this
->
result
=
$result
;
$this
->
result
=
$result
;
...
...
src/Result.php
View file @
b544fd86
...
@@ -17,6 +17,9 @@ final class Result implements ResultInterface
...
@@ -17,6 +17,9 @@ final class Result implements ResultInterface
/** @var Connection */
/** @var Connection */
private
$connection
;
private
$connection
;
/**
* @internal The result can be only instantiated by {@link Connection} or {@link Statement}.
*/
public
function
__construct
(
DriverResult
$result
,
Connection
$connection
)
public
function
__construct
(
DriverResult
$result
,
Connection
$connection
)
{
{
$this
->
result
=
$result
;
$this
->
result
=
$result
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment