Event   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 49
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 3 1
A getPackage() 0 3 1
A __construct() 0 11 1
A getUrl() 0 3 1
1
<?php
2
/**
3
 * Copyright © Vaimo Group. All rights reserved.
4
 * See LICENSE_VAIMO.txt for license details.
5
 */
6
namespace Vaimo\ComposerPatches\Patch;
7
8
class Event extends \Composer\EventDispatcher\Event
9
{
10
    /**
11
     * @var \Composer\Package\PackageInterface $package
12
     */
13
    private $package;
14
15
    /**
16
     * @var string $url
17
     */
18
    private $url;
19
20
    /**
21
     * @var string $description
22
     */
23
    private $description;
24
25
    /**
26
     * @param string $eventName
27
     * @param \Composer\Package\PackageInterface $package
28
     * @param string $url
29
     * @param string $description
30
     */
31
    public function __construct(
32
        $eventName,
33
        \Composer\Package\PackageInterface $package,
34
        $url,
35
        $description
36
    ) {
37
        parent::__construct($eventName);
38
39
        $this->package = $package;
40
        $this->url = $url;
41
        $this->description = $description;
42
    }
43
44
    public function getPackage()
45
    {
46
        return $this->package;
47
    }
48
49
    public function getUrl()
50
    {
51
        return $this->url;
52
    }
53
54
    public function getDescription()
55
    {
56
        return $this->description;
57
    }
58
}
59