Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\HttpKernel\Profiler; Chris@0: Chris@0: /** Chris@0: * ProfilerStorageInterface. Chris@0: * Chris@0: * @author Fabien Potencier Chris@0: */ Chris@0: interface ProfilerStorageInterface Chris@0: { Chris@0: /** Chris@0: * Finds profiler tokens for the given criteria. Chris@0: * Chris@0: * @param string $ip The IP Chris@0: * @param string $url The URL Chris@0: * @param string $limit The maximum number of tokens to return Chris@0: * @param string $method The request method Chris@0: * @param int|null $start The start date to search from Chris@0: * @param int|null $end The end date to search to Chris@0: * Chris@0: * @return array An array of tokens Chris@0: */ Chris@0: public function find($ip, $url, $limit, $method, $start = null, $end = null); Chris@0: Chris@0: /** Chris@0: * Reads data associated with the given token. Chris@0: * Chris@0: * The method returns false if the token does not exist in the storage. Chris@0: * Chris@0: * @param string $token A token Chris@0: * Chris@0: * @return Profile The profile associated with token Chris@0: */ Chris@0: public function read($token); Chris@0: Chris@0: /** Chris@0: * Saves a Profile. Chris@0: * Chris@0: * @return bool Write operation successful Chris@0: */ Chris@0: public function write(Profile $profile); Chris@0: Chris@0: /** Chris@0: * Purges all data from the database. Chris@0: */ Chris@0: public function purge(); Chris@0: }