| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class BaseCommand extends Command |
||
| 10 | { |
||
| 11 | /** @var \Helldar\LaravelLangPublisher\Services\Localization */ |
||
| 12 | protected $localization; |
||
| 13 | |||
| 14 | /** @var \Helldar\LaravelLangPublisher\Support\Result */ |
||
| 15 | protected $result; |
||
| 16 | |||
| 17 | 36 | public function __construct(Localization $localization, Result $result) |
|
| 18 | { |
||
| 19 | 36 | parent::__construct(); |
|
| 20 | |||
| 21 | 36 | $this->localization = $localization; |
|
| 22 | |||
| 23 | 36 | $this->result = $result->setOutput($this); |
|
| 24 | 36 | } |
|
| 25 | |||
| 26 | 12 | protected function locales(): array |
|
| 29 | } |
||
| 30 | |||
| 31 | 12 | protected function isForce(): bool |
|
| 32 | { |
||
| 33 | 12 | return (bool) $this->option('force'); |
|
| 34 | } |
||
| 35 | |||
| 36 | 12 | protected function isJson(): bool |
|
| 39 | } |
||
| 40 | } |
||
| 41 |