mirror of
https://github.com/danog/sql.git
synced 2024-11-26 20:15:08 +01:00
Fix more template types
This commit is contained in:
parent
b2a7d46eb0
commit
73596dffc1
@ -3,8 +3,8 @@
|
||||
namespace Amp\Sql;
|
||||
|
||||
/**
|
||||
* @template TResult extends Result
|
||||
* @template TStatement extends Statement
|
||||
* @template TResult of Result
|
||||
* @template TStatement of Statement
|
||||
*/
|
||||
interface Executor extends TransientResource
|
||||
{
|
||||
|
@ -3,9 +3,9 @@
|
||||
namespace Amp\Sql;
|
||||
|
||||
/**
|
||||
* @template TResult extends Result
|
||||
* @template TStatement extends Statement
|
||||
* @template TTransaction extends Transaction
|
||||
* @template TResult of Result
|
||||
* @template TStatement of Statement
|
||||
* @template TTransaction of Transaction
|
||||
*
|
||||
* @extends Executor<TResult, TStatement>
|
||||
*/
|
||||
|
@ -5,8 +5,8 @@ namespace Amp\Sql;
|
||||
use Amp\Cancellation;
|
||||
|
||||
/**
|
||||
* @template TConfig extends SqlConfig
|
||||
* @template TLink extends Link
|
||||
* @template TConfig of SqlConfig
|
||||
* @template TLink of Link
|
||||
*/
|
||||
interface SqlConnector
|
||||
{
|
||||
|
@ -3,7 +3,7 @@
|
||||
namespace Amp\Sql;
|
||||
|
||||
/**
|
||||
* @template TResult extends Result
|
||||
* @template TResult of Result
|
||||
*/
|
||||
interface Statement extends TransientResource
|
||||
{
|
||||
|
@ -3,8 +3,8 @@
|
||||
namespace Amp\Sql;
|
||||
|
||||
/**
|
||||
* @template TResult extends Result
|
||||
* @template TStatement extends Statement
|
||||
* @template TResult of Result
|
||||
* @template TStatement of Statement
|
||||
* @extends Executor<TResult, TStatement>
|
||||
*/
|
||||
interface Transaction extends Executor
|
||||
|
Loading…
Reference in New Issue
Block a user