Skip to content

Commit

Permalink
add typehint; fix phpdoc tag
Browse files Browse the repository at this point in the history
  • Loading branch information
gimler committed Oct 4, 2011
1 parent d17bd57 commit 53a1977
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace FOQ\ElasticaBundle;

use Elastica_Client;
use FOQ\ElasticaBundle\Logger\ElasticaLogger;

/**
* @author Gordon Franke <info@nevalon.de>
Expand All @@ -11,7 +12,7 @@ class Client extends Elastica_Client
{
protected $logger;

public function setLogger($logger)
public function setLogger(ElasticaLogger $logger)
{
$this->logger = $logger;
}
Expand Down
8 changes: 3 additions & 5 deletions Logger/ElasticaLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ public function __construct(LoggerInterface $logger = null)
/**
* 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)
{
Expand Down

0 comments on commit 53a1977

Please sign in to comment.