RemoveLocaleCacheEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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