| 1 | <?php |
||
| 22 | class PostArticleCommand extends Command implements CommandInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $groups; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | private $subject; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | private $body; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var string |
||
| 41 | */ |
||
| 42 | private $from; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | private $headers; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Constructor. |
||
| 51 | */ |
||
| 52 | 5 | public function __construct($groups, $subject, $body, $from, $headers) |
|
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritdoc} |
||
| 65 | */ |
||
| 66 | 1 | public function __invoke() |
|
| 80 | |||
| 81 | 1 | public function onArticleReceived(Response $response) |
|
| 84 | |||
| 85 | 1 | public function onPostingFailed(Response $response) |
|
| 89 | } |
||
| 90 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.