vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatementImplementations.php line 36

Open in your IDE?
  1. <?php
  2. namespace Doctrine\DBAL\Driver;
  3. use function func_get_args;
  4. use const PHP_VERSION_ID;
  5. if (PHP_VERSION_ID >= 80000) {
  6.     /**
  7.      * @internal
  8.      */
  9.     trait PDOStatementImplementations
  10.     {
  11.         /**
  12.          * @deprecated Use one of the fetch- or iterate-related methods.
  13.          *
  14.          * @param int   $mode
  15.          * @param mixed ...$args
  16.          *
  17.          * @return bool
  18.          */
  19.         public function setFetchMode($mode, ...$args)
  20.         {
  21.             return $this->doSetFetchMode($mode, ...$args);
  22.         }
  23.         /**
  24.          * @deprecated Use fetchAllNumeric(), fetchAllAssociative() or fetchFirstColumn() instead.
  25.          *
  26.          * @param int|null $mode
  27.          * @param mixed    ...$args
  28.          *
  29.          * @return mixed[]
  30.          */
  31.         public function fetchAll($mode null, ...$args)
  32.         {
  33.             return $this->doFetchAll($mode, ...$args);
  34.         }
  35.     }
  36. } else {
  37.     /**
  38.      * @internal
  39.      */
  40.     trait PDOStatementImplementations
  41.     {
  42.         /**
  43.          * @deprecated Use one of the fetch- or iterate-related methods.
  44.          *
  45.          * @param int   $fetchMode
  46.          * @param mixed $arg2
  47.          * @param mixed $arg3
  48.          */
  49.         public function setFetchMode($fetchMode$arg2 null$arg3 null): bool
  50.         {
  51.             return $this->doSetFetchMode(...func_get_args());
  52.         }
  53.         /**
  54.          * @deprecated Use fetchAllNumeric(), fetchAllAssociative() or fetchFirstColumn() instead.
  55.          *
  56.          * @param int|null $fetchMode
  57.          * @param mixed    $fetchArgument
  58.          * @param mixed    $ctorArgs
  59.          *
  60.          * @return mixed[]
  61.          */
  62.         public function fetchAll($fetchMode null$fetchArgument null$ctorArgs null)
  63.         {
  64.             return $this->doFetchAll(...func_get_args());
  65.         }
  66.     }
  67. }