OrderEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getOrder() 0 4 1
1
<?php
2
3
namespace AppBundle\Event;
4
5
use AppBundle\Entity\Order;
6
use Symfony\Component\EventDispatcher\Event;
7
8
class OrderEvent extends Event
9
{
10
    private $order;
11
12
    public function __construct(Order $order)
13
    {
14
        $this->order = $order;
15
    }
16
17
    /**
18
     * @return Order
19
     */
20
    public function getOrder()
21
    {
22
        return $this->order;
23
    }
24
}
25