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

UrlNormalizerEvent::getUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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