Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class SharepHelpMessage |
||
17 | { |
||
18 | /** @var MessageFactory */ |
||
19 | private $messageFactory; |
||
20 | |||
21 | 3 | public function __construct(MessageFactory $messageFactory) |
|
22 | { |
||
23 | 3 | $this->messageFactory = $messageFactory; |
|
24 | 3 | } |
|
25 | |||
26 | 1 | public function generate(): Layout |
|
27 | { |
||
28 | 1 | $mf = $this->messageFactory; |
|
29 | |||
30 | 1 | return $mf->layout( |
|
31 | 1 | $mf->blockSection( |
|
32 | 1 | $mf->elementPlainText('Please try again, proper commands are:'), |
|
33 | ), |
||
|
|||
34 | 1 | $mf->blockSection( |
|
35 | 1 | $mf->elementPlainText('/sharep release'), |
|
36 | ), |
||
40 |