| 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 | 8 | public function __construct($groups, $subject, $body, $from, $headers) |
|
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritdoc} |
||
| 65 | */ |
||
| 66 | 1 | public function __invoke() |
|
| 83 | |||
| 84 | 1 | public function onArticleReceived(Response $response) |
|
| 88 | |||
| 89 | 1 | public function onPostingFailed(Response $response) |
|
| 93 | } |
||
| 94 |