mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 20:47:15 +01:00
55 lines
940 B
PHP
55 lines
940 B
PHP
<?php
|
|
|
|
namespace Xentral\Components\Database\Profiler;
|
|
|
|
use Xentral\Components\Logger\LoggerInterface;
|
|
|
|
interface ProfilerInterface
|
|
{
|
|
/**
|
|
* @param string $className
|
|
* @param string $methodName
|
|
*
|
|
* @return void
|
|
*/
|
|
public function start($className, $methodName);
|
|
|
|
/**
|
|
* @param string|null $statement
|
|
* @param array $values
|
|
*
|
|
* @return void
|
|
*/
|
|
public function finish($statement = null, array $values = []);
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isActive();
|
|
|
|
/**
|
|
* @param bool $active
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setActive($active);
|
|
|
|
/**
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getLogLevel();
|
|
|
|
/**
|
|
* @param string $logLevel
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setLogLevel($logLevel);
|
|
|
|
/**
|
|
* @return LoggerInterface
|
|
*/
|
|
public function getLogger();
|
|
}
|