add typehint; fix phpdoc tag
This commit is contained in:
parent
d17bd572da
commit
53a1977ab2
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue