From 53a1977ab268402da92ace8875df41c4068fe464 Mon Sep 17 00:00:00 2001 From: Gordon Franke Date: Tue, 4 Oct 2011 17:53:28 +0200 Subject: [PATCH] add typehint; fix phpdoc tag --- Client.php | 3 ++- Logger/ElasticaLogger.php | 8 +++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Client.php b/Client.php index 68063be..c868399 100644 --- a/Client.php +++ b/Client.php @@ -3,6 +3,7 @@ namespace FOQ\ElasticaBundle; use Elastica_Client; +use FOQ\ElasticaBundle\Logger\ElasticaLogger; /** * @author Gordon Franke @@ -11,7 +12,7 @@ class Client extends Elastica_Client { protected $logger; - public function setLogger($logger) + public function setLogger(ElasticaLogger $logger) { $this->logger = $logger; } diff --git a/Logger/ElasticaLogger.php b/Logger/ElasticaLogger.php index ffb7342..546179a 100644 --- a/Logger/ElasticaLogger.php +++ b/Logger/ElasticaLogger.php @@ -31,12 +31,10 @@ class ElasticaLogger /** * Logs a query. * - * This method is configured as the logger callable in the service - * container. - * - * @param string $path Path to call + * @param string $path Path to call * @param string $method Rest method to use (GET, POST, DELETE, PUT) - * @param array $data OPTIONAL Arguments as array + * @param array $data arguments + * @param float $time execution time */ public function logQuery($path, $method, array $data, $time) {