OrderEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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