RemoveLocaleCacheEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getManagedLocales() 0 3 1
1
<?php
2
3
namespace Sludio\HelperBundle\Lexik\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class RemoveLocaleCacheEvent extends Event
8
{
9
    /**
10
     * @const String
11
     */
12
    const PRE_REMOVE_LOCAL_CACHE = 'pre_remove_local_cache.event';
13
14
    /**
15
     * @const String
16
     */
17
    const POST_REMOVE_LOCAL_CACHE = 'post_remove_local_cache.event';
18
19
    /**
20
     * @var array
21
     */
22
    private $managedLocales;
23
24
    public function __construct(array $managedLocales)
25
    {
26
        $this->managedLocales = $managedLocales;
27
    }
28
29
    /**
30
     * @return array
31
     */
32
    public function getManagedLocales()
33
    {
34
        return $this->managedLocales;
35
    }
36
}
37