SubscriptionEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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