Completed
Push — master ( 360630...4c87e1 )
by Paweł
27:15 queued 17:38
created

GridDefinitionConverterEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getGrid() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sylius\Component\Grid\Event;
13
14
use Sylius\Component\Grid\Definition\Grid;
15
use Symfony\Component\EventDispatcher\Event;
16
17
/**
18
 * @author Grzegorz Sadowski <[email protected]>
19
 */
20
final class GridDefinitionConverterEvent extends Event
21
{
22
    /**
23
     * @var Grid
24
     */
25
    private $grid;
26
27
    /**
28
     * @param Grid $grid
29
     */
30
    public function __construct(Grid $grid)
31
    {
32
        $this->grid = $grid;
33
    }
34
35
    /**
36
     * @return Grid
37
     */
38
    public function getGrid()
39
    {
40
        return $this->grid;
41
    }
42
}
43