UrlNormalizerEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 27
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 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