mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2024-11-24 22:02:22 +08:00
78 lines
1.9 KiB
PHP
Executable File
78 lines
1.9 KiB
PHP
Executable File
<?php
|
|
|
|
namespace Doctrine\DBAL\Driver;
|
|
|
|
use ReturnTypeWillChange;
|
|
|
|
use function func_get_args;
|
|
|
|
use const PHP_VERSION_ID;
|
|
|
|
if (PHP_VERSION_ID >= 80000) {
|
|
/**
|
|
* @internal
|
|
*/
|
|
trait PDOStatementImplementations
|
|
{
|
|
/**
|
|
* @deprecated Use one of the fetch- or iterate-related methods.
|
|
*
|
|
* @param int $mode
|
|
* @param mixed ...$args
|
|
*
|
|
* @return bool
|
|
*/
|
|
#[ReturnTypeWillChange]
|
|
public function setFetchMode($mode, ...$args)
|
|
{
|
|
return $this->doSetFetchMode($mode, ...$args);
|
|
}
|
|
|
|
/**
|
|
* @deprecated Use fetchAllNumeric(), fetchAllAssociative() or fetchFirstColumn() instead.
|
|
*
|
|
* @param int|null $mode
|
|
* @param mixed ...$args
|
|
*
|
|
* @return mixed[]
|
|
*/
|
|
#[ReturnTypeWillChange]
|
|
public function fetchAll($mode = null, ...$args)
|
|
{
|
|
return $this->doFetchAll($mode, ...$args);
|
|
}
|
|
}
|
|
} else {
|
|
/**
|
|
* @internal
|
|
*/
|
|
trait PDOStatementImplementations
|
|
{
|
|
/**
|
|
* @deprecated Use one of the fetch- or iterate-related methods.
|
|
*
|
|
* @param int $fetchMode
|
|
* @param mixed $arg2
|
|
* @param mixed $arg3
|
|
*/
|
|
public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null): bool
|
|
{
|
|
return $this->doSetFetchMode(...func_get_args());
|
|
}
|
|
|
|
/**
|
|
* @deprecated Use fetchAllNumeric(), fetchAllAssociative() or fetchFirstColumn() instead.
|
|
*
|
|
* @param int|null $fetchMode
|
|
* @param mixed $fetchArgument
|
|
* @param mixed $ctorArgs
|
|
*
|
|
* @return mixed[]
|
|
*/
|
|
public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null)
|
|
{
|
|
return $this->doFetchAll(...func_get_args());
|
|
}
|
|
}
|
|
}
|