ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
cweagans\Composer\PatchEvent Class Reference
+ Inheritance diagram for cweagans\Composer\PatchEvent:
+ Collaboration diagram for cweagans\Composer\PatchEvent:

Public Member Functions

 __construct ($eventName, PackageInterface $package, $url, $description)
 Constructs a PatchEvent object. More...
 
 getPackage ()
 Returns the package that is patched. More...
 
 getUrl ()
 Returns the url of the patch. More...
 
 getDescription ()
 Returns the description of the patch. More...
 

Protected Attributes

 $package
 
 $url
 
 $description
 

Detailed Description

Definition at line 13 of file PatchEvent.php.

Constructor & Destructor Documentation

◆ __construct()

cweagans\Composer\PatchEvent::__construct (   $eventName,
PackageInterface  $package,
  $url,
  $description 
)

Constructs a PatchEvent object.

Parameters
string$eventName
PackageInterface$package
string$url
string$description

Definition at line 36 of file PatchEvent.php.

References cweagans\Composer\PatchEvent\$description, and cweagans\Composer\PatchEvent\$url.

36  {
37  parent::__construct($eventName);
38  $this->package = $package;
39  $this->url = $url;
40  $this->description = $description;
41  }

Member Function Documentation

◆ getDescription()

cweagans\Composer\PatchEvent::getDescription ( )

Returns the description of the patch.

Returns
string

Definition at line 66 of file PatchEvent.php.

References cweagans\Composer\PatchEvent\$description.

66  {
67  return $this->description;
68  }

◆ getPackage()

cweagans\Composer\PatchEvent::getPackage ( )

Returns the package that is patched.

Returns
PackageInterface

Definition at line 48 of file PatchEvent.php.

References cweagans\Composer\PatchEvent\$package.

48  {
49  return $this->package;
50  }

◆ getUrl()

cweagans\Composer\PatchEvent::getUrl ( )

Returns the url of the patch.

Returns
string

Definition at line 57 of file PatchEvent.php.

References cweagans\Composer\PatchEvent\$url.

57  {
58  return $this->url;
59  }

Field Documentation

◆ $description

string cweagans\Composer\PatchEvent::$description
protected

◆ $package

PackageInterface cweagans\Composer\PatchEvent::$package
protected

Definition at line 18 of file PatchEvent.php.

Referenced by cweagans\Composer\PatchEvent\getPackage().

◆ $url

string cweagans\Composer\PatchEvent::$url
protected

The documentation for this class was generated from the following file: