| Total Complexity | 6 | 
| Total Lines | 79 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 9 | class InputSettingData  | 
            ||
| 10 | { | 
            ||
| 11 | /**  | 
            ||
| 12 | * @var string  | 
            ||
| 13 | */  | 
            ||
| 14 | private $pathToConfigFile;  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * @var bool  | 
            ||
| 18 | */  | 
            ||
| 19 | private $fixEnabled;  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * @var string  | 
            ||
| 23 | */  | 
            ||
| 24 | private $pathToCacheDir;  | 
            ||
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * @var bool  | 
            ||
| 28 | */  | 
            ||
| 29 | private $disableCache;  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * @var bool  | 
            ||
| 33 | */  | 
            ||
| 34 | private $disableProgressBar;  | 
            ||
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * @param \Symfony\Component\Console\Input\InputInterface $input  | 
            ||
| 38 | */  | 
            ||
| 39 | 10 | public function __construct(InputInterface $input)  | 
            |
| 40 |     { | 
            ||
| 41 | /** @var string $pathToConfigFile */  | 
            ||
| 42 | 10 | $pathToConfigFile = $input->getArgument(YamlCommand::ARGUMENT_PATH_TO_CONFIG_FILE);  | 
            |
| 43 | 10 | $this->pathToConfigFile = $pathToConfigFile;  | 
            |
| 44 | 10 | $this->fixEnabled = $input->getOption(YamlCommand::OPTION_FIX);  | 
            |
| 45 | 10 | $this->pathToCacheDir = $input->getOption(YamlCommand::OPTION_PATH_TO_CACHE_DIR);  | 
            |
| 46 | 10 | $this->disableCache = $input->getOption(YamlCommand::OPTION_DISABLE_CACHE);  | 
            |
| 47 | 10 | $this->disableProgressBar = $input->getOption(YamlCommand::OPTION_DISABLE_PROGRESS_BAR);  | 
            |
| 48 | }  | 
            ||
| 49 | |||
| 50 | /**  | 
            ||
| 51 | * @return string  | 
            ||
| 52 | */  | 
            ||
| 53 | 10 | public function getPathToConfigFile(): string  | 
            |
| 54 |     { | 
            ||
| 55 | 10 | return $this->pathToConfigFile;  | 
            |
| 56 | }  | 
            ||
| 57 | |||
| 58 | /**  | 
            ||
| 59 | * @return bool  | 
            ||
| 60 | */  | 
            ||
| 61 | 7 | public function isFixEnabled(): bool  | 
            |
| 62 |     { | 
            ||
| 63 | 7 | return $this->fixEnabled;  | 
            |
| 64 | }  | 
            ||
| 65 | |||
| 66 | /**  | 
            ||
| 67 | * @return string  | 
            ||
| 68 | */  | 
            ||
| 69 | 10 | public function getPathToCacheDir(): string  | 
            |
| 70 |     { | 
            ||
| 71 | 10 | return $this->pathToCacheDir;  | 
            |
| 72 | }  | 
            ||
| 73 | |||
| 74 | /**  | 
            ||
| 75 | * @return bool  | 
            ||
| 76 | */  | 
            ||
| 77 | 9 | public function isCacheDisabled(): bool  | 
            |
| 80 | }  | 
            ||
| 81 | |||
| 82 | /**  | 
            ||
| 83 | * @return bool  | 
            ||
| 84 | */  | 
            ||
| 85 | 9 | public function isProgressBarDisabled(): bool  | 
            |
| 88 | }  | 
            ||
| 89 | }  | 
            ||
| 90 |