Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

vendor/symfony/http-kernel/Profiler/ProfilerStorageInterface.php line 36

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\HttpKernel\Profiler;
  11. /**
  12.  * ProfilerStorageInterface.
  13.  *
  14.  * This interface exists for historical reasons. The only supported
  15.  * implementation is FileProfilerStorage.
  16.  *
  17.  * As the profiler must only be used on non-production servers, the file storage
  18.  * is more than enough and no other implementations will ever be supported.
  19.  *
  20.  * @internal
  21.  *
  22.  * @author Fabien Potencier <fabien@symfony.com>
  23.  */
  24. interface ProfilerStorageInterface
  25. {
  26.     /**
  27.      * Finds profiler tokens for the given criteria.
  28.      *
  29.      * @param int|null $limit The maximum number of tokens to return
  30.      * @param int|null $start The start date to search from
  31.      * @param int|null $end   The end date to search to
  32.      */
  33.     public function find(?string $ip, ?string $url, ?int $limit, ?string $methodint $start nullint $end null): array;
  34.     /**
  35.      * Reads data associated with the given token.
  36.      *
  37.      * The method returns false if the token does not exist in the storage.
  38.      */
  39.     public function read(string $token): ?Profile;
  40.     /**
  41.      * Saves a Profile.
  42.      */
  43.     public function write(Profile $profile): bool;
  44.     /**
  45.      * Purges all data from the database.
  46.      */
  47.     public function purge();
  48. }