class InstallerEvent
Hierarchy
- class \Composer\EventDispatcher\Event
- class \Composer\Installer\InstallerEvent extends \Composer\EventDispatcher\Event
Expanded class hierarchy of InstallerEvent
1 file declares its use of InstallerEvent
- EventDispatcher.php in vendor/
composer/ composer/ src/ Composer/ EventDispatcher/ EventDispatcher.php
File
-
vendor/
composer/ composer/ src/ Composer/ Installer/ InstallerEvent.php, line 20
Namespace
Composer\InstallerView source
class InstallerEvent extends Event {
/**
* @var Composer
*/
private $composer;
/**
* @var IOInterface
*/
private $io;
/**
* @var bool
*/
private $devMode;
/**
* @var bool
*/
private $executeOperations;
/**
* @var Transaction
*/
private $transaction;
/**
* Constructor.
*/
public function __construct(string $eventName, Composer $composer, IOInterface $io, bool $devMode, bool $executeOperations, Transaction $transaction) {
parent::__construct($eventName);
$this->composer = $composer;
$this->io = $io;
$this->devMode = $devMode;
$this->executeOperations = $executeOperations;
$this->transaction = $transaction;
}
public function getComposer() : Composer {
return $this->composer;
}
public function getIO() : IOInterface {
return $this->io;
}
public function isDevMode() : bool {
return $this->devMode;
}
public function isExecutingOperations() : bool {
return $this->executeOperations;
}
public function getTransaction() : ?Transaction {
return $this->transaction;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
Event::$args | protected | property | ||
Event::$flags | protected | property | ||
Event::$name | protected | property | ||
Event::$propagationStopped | private | property | ||
Event::getArguments | public | function | Returns the event's arguments. | |
Event::getFlags | public | function | Returns the event's flags. | |
Event::getName | public | function | Returns the event's name. | |
Event::isPropagationStopped | public | function | Checks if stopPropagation has been called | |
Event::stopPropagation | public | function | Prevents the event from being passed to further listeners | |
InstallerEvent::$composer | private | property | ||
InstallerEvent::$devMode | private | property | ||
InstallerEvent::$executeOperations | private | property | ||
InstallerEvent::$io | private | property | ||
InstallerEvent::$transaction | private | property | ||
InstallerEvent::getComposer | public | function | ||
InstallerEvent::getIO | public | function | ||
InstallerEvent::getTransaction | public | function | ||
InstallerEvent::isDevMode | public | function | ||
InstallerEvent::isExecutingOperations | public | function | ||
InstallerEvent::__construct | public | function | Constructor. | Overrides Event::__construct |