SubscriptionEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getSubscription() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PH\Bundle\CoreBundle\Event;
6
7
use PH\Component\Core\Model\SubscriptionInterface;
8
use Symfony\Component\EventDispatcher\Event;
9
10
class SubscriptionEvent extends Event
11
{
12
    /**
13
     * @var SubscriptionInterface
14
     */
15
    protected $subscription;
16
17
    /**
18
     * SubscriptionEvent constructor.
19
     *
20
     * @param SubscriptionInterface $subscription
21
     */
22
    public function __construct(SubscriptionInterface $subscription)
23
    {
24
        $this->subscription = $subscription;
25
    }
26
27
    public function getSubscription(): SubscriptionInterface
28
    {
29
        return $this->subscription;
30
    }
31
}
32