| 1 | <?php |
||
| 6 | class InvalidFilter extends Filter |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * A code to identify the reason the filter is invalid |
||
| 10 | * |
||
| 11 | * @var int |
||
| 12 | */ |
||
| 13 | protected $code = 0; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * A user-readable message describing the reason the filter is invalid |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $message; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return int |
||
| 24 | */ |
||
| 25 | public function getCode() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param int $code |
||
| 32 | */ |
||
| 33 | public function setCode($code) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function getMessage() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param string $message |
||
| 48 | */ |
||
| 49 | public function setMessage($message) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param array $message |
||
| 56 | * @param int $code |
||
| 57 | */ |
||
| 58 | public function __construct($message, $code = 0) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param $index |
||
| 66 | * @param $value |
||
| 67 | * |
||
| 68 | * @throws MethodNotAllowedException |
||
| 69 | */ |
||
| 70 | public function addAtIndex($index, $value) |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @param mixed $offset |
||
| 77 | * @param mixed $value |
||
| 78 | * |
||
| 79 | * @throws MethodNotAllowedException |
||
| 80 | */ |
||
| 81 | public function offsetSet($offset, $value) |
||
| 85 | } |
||
| 86 |
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..