| 1 | <?php |
||
| 12 | class QueryVarCondition implements ConditionInterface { |
||
| 13 | /** |
||
| 14 | * Query var name to check against. |
||
| 15 | * |
||
| 16 | * @var string|null |
||
| 17 | */ |
||
| 18 | protected $query_var = null; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Query var value to check against. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $value = ''; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Constructor. |
||
| 29 | * |
||
| 30 | * @param string $query_var |
||
| 31 | * @param string $value |
||
|
|
|||
| 32 | */ |
||
| 33 | public function __construct( $query_var, $value = null ) { |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritDoc} |
||
| 40 | */ |
||
| 41 | public function isSatisfied( Request $request ) { |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritDoc} |
||
| 57 | */ |
||
| 58 | public function getArguments( Request $request ) { |
||
| 61 | } |
||
| 62 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.