Completed
Push — master ( 44ea8e...1ef346 )
by Bukashk0zzz
12:10
created

UrlNormalizerEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 37
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getUrl() 0 4 1
A setUrl() 0 6 1
1
<?php
2
3
namespace Bukashk0zzz\LiipImagineSerializationBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
/**
8
 * UrlNormalizerEvent
9
 *
10
 * @author Denis Golubovskiy <[email protected]>
11
 */
12
class UrlNormalizerEvent extends Event
13
{
14
    const ORIGIN = 'bukashk0zzz_liip_imagine.event_pre_origin_normalize';
15
    const FILTERED = 'bukashk0zzz_liip_imagine.event_pre_filtered_normalize';
16
17
    /**
18
     * @var string
19
     */
20
    protected $url;
21
22
    /**
23
     * @param string $url
24
     */
25
    public function __construct($url)
26
    {
27
        $this->url = $url;
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getUrl()
34
    {
35
        return $this->url;
36
    }
37
38
    /**
39
     * @param string $url
40
     * @return $this
41
     */
42
    public function setUrl($url)
43
    {
44
        $this->url = $url;
45
46
        return $this;
47
    }
48
}
49