aboutsummaryrefslogtreecommitdiff
path: root/includes/vendor/aura/sql/src/ProfilerInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/vendor/aura/sql/src/ProfilerInterface.php')
-rw-r--r--includes/vendor/aura/sql/src/ProfilerInterface.php80
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();
+}