add typehint; fix phpdoc tag

This commit is contained in:
Gordon Franke 2011-10-04 17:53:28 +02:00
parent d17bd572da
commit 53a1977ab2
2 changed files with 5 additions and 6 deletions

View file

@ -3,6 +3,7 @@
namespace FOQ\ElasticaBundle;
use Elastica_Client;
use FOQ\ElasticaBundle\Logger\ElasticaLogger;
/**
* @author Gordon Franke <info@nevalon.de>
@ -11,7 +12,7 @@ class Client extends Elastica_Client
{
protected $logger;
public function setLogger($logger)
public function setLogger(ElasticaLogger $logger)
{
$this->logger = $logger;
}

View file

@ -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)
{