diff options
| author | s1n <[email protected]> | 2020-03-28 10:36:41 -0700 |
|---|---|---|
| committer | s1n <[email protected]> | 2020-03-28 10:36:41 -0700 |
| commit | 25b7d2aab61ae6421398d3abae5da6ffe590333d (patch) | |
| tree | 611985ec78bb2d94099c9fd5dd687f5c9cee6f3e /includes/vendor/aura/sql/src/ProfilerInterface.php | |
| parent | Initial commit (diff) | |
| download | crack.cf-backup-master.tar.xz crack.cf-backup-master.zip | |
Diffstat (limited to 'includes/vendor/aura/sql/src/ProfilerInterface.php')
| -rw-r--r-- | includes/vendor/aura/sql/src/ProfilerInterface.php | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/includes/vendor/aura/sql/src/ProfilerInterface.php b/includes/vendor/aura/sql/src/ProfilerInterface.php new file mode 100644 index 0000000..f3ae0d8 --- /dev/null +++ b/includes/vendor/aura/sql/src/ProfilerInterface.php @@ -0,0 +1,80 @@ +<?php +/** + * + * This file is part of Aura for PHP. + * + * @license http://opensource.org/licenses/bsd-license.php BSD + * + */ +namespace Aura\Sql; + +/** + * + * Interface for query profilers. + * + * @package Aura.Sql + * + */ +interface ProfilerInterface +{ + /** + * + * Turns the profiler on and off. + * + * @param bool $active True to turn on, false to turn off. + * + * @return null + * + */ + public function setActive($active); + + /** + * + * Is the profiler active? + * + * @return bool + * + */ + public function isActive(); + + /** + * + * Adds a profile entry. + * + * @param float $duration The query duration. + * + * @param string $function The PDO method that made the entry. + * + * @param string $statement The SQL query statement. + * + * @param array $bind_values The values bound to the statement. + * + * @return null + * + */ + public function addProfile( + $duration, + $function, + $statement, + array $bind_values + ); + + /** + * + * Returns all the profiles. + * + * @return array + * + */ + public function getProfiles(); + + + /** + * + * Reset all the profiles + * + * @return null + * + */ + public function resetProfiles(); +} |