| 1 | <?php | ||
| 10 | class RiskyFiles extends ActionAbstract | ||
| 11 | { | ||
| 12 | /** | ||
| 13 | * @var FileList | ||
| 14 | */ | ||
| 15 | protected $files; | ||
| 16 | |||
| 17 | /** @var string */ | ||
| 18 | protected $reason; | ||
| 19 | |||
| 20 | /** | ||
| 21 | * Will show a warning if `$files` is not empty, for the reason specified in `$reason`. | ||
| 22 | * | ||
| 23 | * @param FileList $files | ||
| 24 | * @param string $reason | ||
| 25 | */ | ||
| 26 | 4 | public function __construct(FileList $files, $reason) | |
| 31 | |||
| 32 | /** | ||
| 33 |      * {@inheritdoc} | ||
| 34 | */ | ||
| 35 | public function getName() | ||
| 39 | |||
| 40 | /** | ||
| 41 |      * {@inheritdoc} | ||
| 42 | */ | ||
| 43 | 1 | public function isSupported() | |
| 44 |     { | ||
| 45 | 1 | return true; // no special dependencies | |
| 46 | } | ||
| 47 | |||
| 48 | /** | ||
| 49 |      * {@inheritdoc} | ||
| 50 | */ | ||
| 51 | 3 | public function execute(InputInterface $input, OutputInterface $output) | |
| 65 | } | ||
| 66 |