UrlNormalizerEvent::getUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php declare(strict_types = 1);
2
3
namespace Bukashk0zzz\LiipImagineSerializationBundle\Event;
4
5
use Symfony\Contracts\EventDispatcher\Event;
6
7
/**
8
 * UrlNormalizerEvent
9
 */
10
class UrlNormalizerEvent extends Event
11
{
12
    public const ORIGIN = 'bukashk0zzz_liip_imagine.event_pre_origin_normalize';
13
    public const FILTERED = 'bukashk0zzz_liip_imagine.event_pre_filtered_normalize';
14
15
    /**
16
     * @var string
17
     */
18
    protected $url;
19
20
    public function __construct(string $url)
21
    {
22
        $this->url = $url;
23
    }
24
25
    public function getUrl(): string
26
    {
27
        return $this->url;
28
    }
29
30
    public function setUrl(string $url): UrlNormalizerEvent
31
    {
32
        $this->url = $url;
33
34
        return $this;
35
    }
36
}
37