HasStartedHandling   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 26
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getEntries() 0 4 1
1
<?php
2
3
namespace GBProd\ElasticsearchDataProviderBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
/**
8
 * Event triggered when handling has been started
9
 *
10
 * @author gbprod <[email protected]>
11
 */
12
class HasStartedHandling extends Event
13
{
14
    /**
15
     * @var array<RegistryEntry>
16
     */
17
    private $entries;
18
19
    /**
20
     * @param array<RegistryEntry> $entries
21
     */
22 3
    public function __construct($entries)
23
    {
24 3
        $this->entries = $entries;
25 3
    }
26
27
    /**
28
     * Get entries
29
     *
30
     * @return array<RegistryEntry>
31
     */
32 2
    public function getEntries()
33
    {
34 2
        return $this->entries;
35
    }
36
37
}
38