Unverified Commit b544fd86 authored by Sergei Morozov's avatar Sergei Morozov Committed by GitHub

Merge pull request #4140 from morozov/result-constructor-internal

Mark result constructors internal
parents 4f578bea 71cfb58a
...@@ -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)
......
...@@ -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)
......
...@@ -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)
......
...@@ -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;
......
...@@ -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)
......
...@@ -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;
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment