| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class PurgeSiteCommand extends AbstractCommand{ |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $siteId; |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $resourcePattern; |
||
| 18 | protected function configure() |
||
| 19 | { |
||
| 20 | parent::configure(); |
||
| 21 | |||
| 22 | $this |
||
| 23 | ->setName('site:purge') |
||
| 24 | ->setDescription('Purge URLs from a given site id') |
||
| 25 | ->addArgument('site-id', InputArgument::REQUIRED, 'incapsula id of site to purge') |
||
| 26 | ->addArgument('resource-pattern', InputArgument::OPTIONAL, 'string to match in the URL to be purged',"") |
||
| 27 | ; |
||
| 28 | } |
||
| 29 | /** |
||
| 30 | * @param InputInterface $input |
||
| 31 | * @param OutputInterface $output |
||
| 32 | */ |
||
| 33 | protected function initialize(InputInterface $input, OutputInterface $output) |
||
| 39 | |||
| 40 | } |
||
| 41 | /** |
||
| 42 | * @param InputInterface $input |
||
| 43 | * @param OutputInterface $output |
||
| 44 | * |
||
| 45 | * @return int |
||
| 46 | */ |
||
| 47 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 51 | } |
||
| 52 | } |