1 | <?php |
||
8 | class MockCommandExtractor implements CommandExtractorInterface |
||
9 | { |
||
10 | private $toReturn; |
||
11 | private $toReturnForArgs; |
||
12 | private $lastArgsHash; |
||
13 | |||
14 | /** |
||
15 | * MockCommandExtractor constructor. |
||
16 | */ |
||
17 | public function __construct() |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function extractFromRequest(Request $request, string $commandClass, array $additionalProps = []) |
||
34 | |||
35 | public function willReturn($command): self |
||
45 | |||
46 | public function andThen(): self |
||
50 | |||
51 | public function forArguments(Request $request, string $cmdClass, array $additionalProps = []): self |
||
57 | } |
||
58 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.