Event::getDescription()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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