| 1 | <?php |
||
| 5 | class RequestHandler |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | protected $name; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $path; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $method; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $defaultParams; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param type $name |
||
| 29 | * @param type $path |
||
| 30 | * @param string $method |
||
| 31 | * @param array $defaultParams |
||
| 32 | */ |
||
| 33 | 28 | public function __construct($name, $path, $method, array $defaultParams = array()) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Returns the name of the method that can be invoked from the client. |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 28 | public function getName() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Returns the path tp the request handler. |
||
| 53 | * |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 4 | public function getPath() |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | 4 | public function getMethod() |
|
| 68 | |||
| 69 | /** |
||
| 70 | * Sets the default parameters for this request handler. |
||
| 71 | * |
||
| 72 | * @param array $params |
||
| 73 | * |
||
| 74 | * @return \PSolr\Client\RequestHandler |
||
| 75 | */ |
||
| 76 | public function setDefaultParams(array $params) |
||
| 81 | |||
| 82 | /** |
||
| 83 | * Sets the default parameters for this request handler. |
||
| 84 | * |
||
| 85 | * @param string $param |
||
| 86 | * @param mixed $value |
||
| 87 | * |
||
| 88 | * @return \PSolr\Client\RequestHandler |
||
| 89 | */ |
||
| 90 | public function setDefaultParam($param, $value) |
||
| 95 | |||
| 96 | /** |
||
| 97 | * Returns the request handler's default parameters. |
||
| 98 | * |
||
| 99 | * @return array |
||
| 100 | */ |
||
| 101 | 8 | public function getDefaultParams() |
|
| 105 | |||
| 106 | /** |
||
| 107 | * Sets the default parameters for this request handler. |
||
| 108 | * |
||
| 109 | * @param string $param |
||
| 110 | * |
||
| 111 | * @return \PSolr\Client\RequestHandler |
||
| 112 | */ |
||
| 113 | public function removeDefaultParam($param) |
||
| 118 | } |
||
| 119 |
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..