| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class SubscriptionEvent extends Event |
||
|
|
|||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var SubscriptionInterface |
||
| 12 | */ |
||
| 13 | private $subscription; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var bool |
||
| 17 | */ |
||
| 18 | private $fromRenew; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Constructor. |
||
| 22 | * |
||
| 23 | * @param SubscriptionInterface $subscription |
||
| 24 | * @param boolean $fromRenew |
||
| 25 | */ |
||
| 26 | 9 | public function __construct(SubscriptionInterface $subscription, $fromRenew = false) |
|
| 30 | 9 | } |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return SubscriptionInterface |
||
| 34 | */ |
||
| 35 | public function getSubscription() |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function isFromRenew() |
||
| 48 |