Skip to content
Snippets Groups Projects
Commit 3dd64c7e authored by David Maus's avatar David Maus
Browse files

Fix types

parent 8a246d44
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
namespace HAB\Solr\Command; namespace HAB\Solr\Command;
use HAB\Solr\ParamBag;
/** /**
* Interface of a Solr command. * Interface of a Solr command.
* *
...@@ -42,7 +44,7 @@ interface CommandInterface ...@@ -42,7 +44,7 @@ interface CommandInterface
/** /**
* Return parameters. * Return parameters.
* *
* @return array * @return ParamBag
*/ */
public function getParameters (); public function getParameters ();
...@@ -61,4 +63,4 @@ interface CommandInterface ...@@ -61,4 +63,4 @@ interface CommandInterface
*/ */
public function getResult (); public function getResult ();
} }
\ No newline at end of file
...@@ -103,7 +103,7 @@ class Invoker ...@@ -103,7 +103,7 @@ class Invoker
*/ */
public function getParameters () public function getParameters ()
{ {
if (is_null($this->parameters)) { if ($this->parameters === null) {
$this->setParameters(new ParamBag()); $this->setParameters(new ParamBag());
} }
return $this->parameters; return $this->parameters;
...@@ -113,7 +113,7 @@ class Invoker ...@@ -113,7 +113,7 @@ class Invoker
* Set parameters. * Set parameters.
* *
* @param ParamBag $parameters * @param ParamBag $parameters
* @return * @return void
*/ */
public function setParameters (ParamBag $parameters) public function setParameters (ParamBag $parameters)
{ {
...@@ -131,4 +131,4 @@ class Invoker ...@@ -131,4 +131,4 @@ class Invoker
{ {
return sprintf('%s=%s', urlencode($name), urlencode($value)); return sprintf('%s=%s', urlencode($name), urlencode($value));
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment