| 1 | <?php |
||
| 16 | class XpathCommand extends Command implements CommandInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | const FOUND_PATH = 223; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | const INVALID_REFERENCE = 501; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $reference; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor. |
||
| 35 | * |
||
| 36 | * @param string $reference The reference |
||
| 37 | */ |
||
| 38 | 3 | public function __construct($reference) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | 1 | public function __invoke() |
|
| 52 | |||
| 53 | /** |
||
| 54 | * Return the message's reference. |
||
| 55 | * |
||
| 56 | * @param Response $response |
||
| 57 | */ |
||
| 58 | 1 | public function onFoundPath(Response $response) |
|
| 62 | |||
| 63 | /** |
||
| 64 | * If we didn't find the message, just return an empty response. |
||
| 65 | * |
||
| 66 | * @param Response $response |
||
| 67 | */ |
||
| 68 | 1 | public function onInvalidMessage(Response $response) |
|
| 72 | } |
||
| 73 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.