4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpKernel\Profiler;
15 * ProfilerStorageInterface.
17 * @author Fabien Potencier <fabien@symfony.com>
19 interface ProfilerStorageInterface
22 * Finds profiler tokens for the given criteria.
24 * @param string $ip The IP
25 * @param string $url The URL
26 * @param string $limit The maximum number of tokens to return
27 * @param string $method The request method
28 * @param int|null $start The start date to search from
29 * @param int|null $end The end date to search to
31 * @return array An array of tokens
33 public function find($ip, $url, $limit, $method, $start = null, $end = null);
36 * Reads data associated with the given token.
38 * The method returns false if the token does not exist in the storage.
40 * @param string $token A token
42 * @return Profile The profile associated with token
44 public function read($token);
49 * @param Profile $profile A Profile instance
51 * @return bool Write operation successful
53 public function write(Profile $profile);
56 * Purges all data from the database.
58 public function purge();