ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PatchEvent.php
Go to the documentation of this file.
1<?php
2
8namespace cweagans\Composer;
9
10use Composer\EventDispatcher\Event;
11use Composer\Package\PackageInterface;
12
13class PatchEvent extends Event {
14
18 protected $package;
22 protected $url;
26 protected $description;
27
36 public function __construct($eventName, PackageInterface $package, $url, $description) {
37 parent::__construct($eventName);
38 $this->package = $package;
39 $this->url = $url;
40 $this->description = $description;
41 }
42
48 public function getPackage() {
49 return $this->package;
50 }
51
57 public function getUrl() {
58 return $this->url;
59 }
60
66 public function getDescription() {
67 return $this->description;
68 }
69
70}
An exception for terminatinating execution or to throw for unit testing.
getPackage()
Returns the package that is patched.
Definition: PatchEvent.php:48
getDescription()
Returns the description of the patch.
Definition: PatchEvent.php:66
getUrl()
Returns the url of the patch.
Definition: PatchEvent.php:57
__construct($eventName, PackageInterface $package, $url, $description)
Constructs a PatchEvent object.
Definition: PatchEvent.php:36