Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ExpireCommand extends AbstractCommand |
||
10 | { |
||
11 | /** |
||
12 | * {@inheritdoc} |
||
13 | */ |
||
14 | 1 | protected function configure() |
|
15 | { |
||
16 | 1 | parent::configure(); |
|
17 | |||
18 | $this |
||
19 | 1 | ->setName(TeroxSubscriptionBundle::COMMAND_NAMESPACE.':expire') |
|
20 | 1 | ->setDescription('Expire a subscription') |
|
21 | 1 | ->addArgument( |
|
22 | 1 | 'reason', |
|
23 | 1 | InputArgument::OPTIONAL, |
|
24 | 1 | 'Reason of expiration', |
|
25 | 1 | 'expired' |
|
26 | ); |
||
27 | 1 | } |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 1 | protected function action(SubscriptionInterface $subscription) |
|
39 | 1 | } |
|
40 | } |
||
41 |