This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
58
*/
59
17
public function status(PayloadInterface $payload)
60
{
61
17
$status = $payload->getStatus();
62
63
// Legacy logic
64
// @todo Remove this in 2.0
65
17
if (is_int($status)) {
66
6
if ($status >= PayloadInterface::OK && $status < PayloadInterface::ERROR) {
The constant Equip\Adr\PayloadInterface::OK has been deprecated with message: 1.1.0
This class constant has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the constant will be
removed from the class and what other constant to use instead.
The constant Equip\Adr\PayloadInterface::ERROR has been deprecated with message: 1.1.0
This class constant has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the constant will be
removed from the class and what other constant to use instead.
Loading history...
67
3
return 200;
68
}
69
3
if ($status >= PayloadInterface::ERROR && $status < PayloadInterface::INVALID) {
The constant Equip\Adr\PayloadInterface::ERROR has been deprecated with message: 1.1.0
This class constant has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the constant will be
removed from the class and what other constant to use instead.
The constant Equip\Adr\PayloadInterface::INVALID has been deprecated with message: 1.1.0
This class constant has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the constant will be
removed from the class and what other constant to use instead.
Loading history...
70
1
return 500;
71
}
72
2
if ($status >= PayloadInterface::INVALID && $status < PayloadInterface::UNKNOWN) {
The constant Equip\Adr\PayloadInterface::INVALID has been deprecated with message: 1.1.0
This class constant has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the constant will be
removed from the class and what other constant to use instead.
The constant Equip\Adr\PayloadInterface::UNKNOWN has been deprecated with message: 1.1.0
This class constant has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the constant will be
removed from the class and what other constant to use instead.
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.