| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class PublishDraft implements Interfaces\LoggableCommand |
||
| 11 | { |
||
| 12 | public function getDraftData(): array |
||
| 13 | { |
||
| 14 | return ['some draft data']; |
||
| 15 | } |
||
| 16 | |||
| 17 | public function getLogContext(): array |
||
| 18 | { |
||
| 19 | return ['draftData' => $this->getDraftData()]; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getLogMessage(): string |
||
| 23 | { |
||
| 24 | return 'Trying to publish a draft'; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getLogLevel(): ?Enums\LogLevel |
||
| 30 | } |
||
| 31 | } |
||
| 32 |