EnrollerChangeEvent::getEnroller()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
eloc 1
c 1
b 1
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
4
namespace PTS\SyliusReferralPlugin\Event;
5
6
7
use PTS\SyliusReferralPlugin\Entity\Customer;
8
use Symfony\Contracts\EventDispatcher\Event;
9
10
class EnrollerChangeEvent extends Event
11
{
12
    public const NAME = 'enroller.changed';
13
14
    protected $customer;
15
16
    protected $enroller;
17
18
    public function __construct(Customer $customer, Customer $enroller)
19
    {
20
        $this->customer = $customer;
21
        $this->enroller = $enroller;
22
    }
23
24
    public function getCustomer()
25
    {
26
        return $this->customer;
27
    }
28
29
    public function getEnroller()
30
    {
31
        return $this->enroller;
32
    }
33
}