EnrollerChangeEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
eloc 8
c 1
b 1
f 1
dl 0
loc 22
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getEnroller() 0 3 1
A getCustomer() 0 3 1
A __construct() 0 4 1
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
}