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