1 | <?php |
||
18 | class SharepReleaseTaskProcessor implements TaskProcessorInterface |
||
19 | { |
||
20 | /** @var MessageFactory */ |
||
21 | private $messageFactory; |
||
22 | |||
23 | 3 | public function __construct(MessageFactory $messageFactory) |
|
27 | |||
28 | 2 | public function supports(CommandData $commandData): bool |
|
29 | { |
||
30 | 2 | return (bool) preg_match("/^release\s?/i", $commandData->text); |
|
31 | } |
||
32 | |||
33 | 1 | public function process(CommandData $commandData): Layout |
|
44 | } |
||
45 |