| Total Complexity | 5 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class OffensiveWordsCommand extends Command |
||
| 14 | { |
||
| 15 | private $offensiveWords = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Set offensive words from configuration file |
||
| 19 | * |
||
| 20 | * @param $offensiveWords |
||
| 21 | */ |
||
| 22 | public function setOffensiveWords($offensiveWords) |
||
| 23 | { |
||
| 24 | $this->offensiveWords = $offensiveWords; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Configures offensive words command for Console component. |
||
| 29 | */ |
||
| 30 | protected function configure() |
||
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 59 |