for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PSolr\Client;
class RequestHandler
{
/**
* @var string
*/
protected $name;
protected $path;
protected $method;
* @var array
protected $defaultParams;
* @param type $name
* @param type $path
* @param string $method
* @param array $defaultParams
public function __construct($name, $path, $method, array $defaultParams = array())
$this->name = $name;
$name
object<PSolr\Client\type>
string
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
$this->path = $path;
$path
$this->method = strtoupper($method);
$this->defaultParams = $defaultParams;
}
* Returns the name of the method that can be invoked from the client.
*
* @return string
public function getName()
return $this->name;
* Returns the path tp the request handler.
public function getPath()
return $this->path;
public function getMethod()
return $this->method;
* Sets the default parameters for this request handler.
* @param array $params
* @return \PSolr\Client\RequestHandler
public function setDefaultParams(array $params)
$this->defaultParams = $params;
return $this;
* @param string $param
* @param mixed $value
public function setDefaultParam($param, $value)
$this->defaultParams[$param] = $value;
* Returns the request handler's default parameters.
* @return array
public function getDefaultParams()
return $this->defaultParams;
public function removeDefaultParam($param)
unset($this->defaultParams[$param]);
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..