PharAwareEvent
extends ComposerAwareEvent
in package
Class PharAwareEvent.
Tags
Table of Contents
Properties
- $composerReader : Composer
- The phar builder
- $emitter : EmitterInterface|null
- The emitter instance.
- $name : string
- The event name.
- $pharContext : PharBuilder
- The phar builder
- $propagationStopped : bool
- Has propagation stopped?
Methods
- __construct() : mixed
- Create a new event instance.
- getComposerReader() : Composer
- Get the composer reader object
- getEmitter() : EmitterInterface
- Get the Emitter.
- getName() : string
- Get the event name.
- getPhar() : PharBuilder
- Get the PHAR builder
- isPropagationStopped() : bool
- Check whether propagation was stopped.
- named() : static
- Create a new event instance.
- setEmitter() : $this
- Set the Emitter.
- stopPropagation() : $this
- Stop event propagation.
Properties
$composerReader
The phar builder
protected
Composer
$composerReader
$emitter
The emitter instance.
protected
EmitterInterface|null
$emitter
$name
The event name.
protected
string
$name
$pharContext
The phar builder
protected
PharBuilder
$pharContext
$propagationStopped
Has propagation stopped?
protected
bool
$propagationStopped
= false
Methods
__construct()
Create a new event instance.
public
__construct(string $name, PharBuilder $builder) : mixed
Parameters
- $name : string
-
The new event name
- $builder : PharBuilder
-
The PharBuilder
getComposerReader()
Get the composer reader object
public
getComposerReader() : Composer
Return values
ComposergetEmitter()
Get the Emitter.
public
getEmitter() : EmitterInterface
Tags
Return values
EmitterInterfacegetName()
Get the event name.
public
getName() : string
Tags
Return values
stringgetPhar()
Get the PHAR builder
public
getPhar() : PharBuilder
Return values
PharBuilderisPropagationStopped()
Check whether propagation was stopped.
public
isPropagationStopped() : bool
Tags
Return values
boolnamed()
Create a new event instance.
public
static named(string $name[, PharBuilder $builder = null ]) : static
Parameters
- $name : string
-
The new event name
- $builder : PharBuilder = null
-
The PharBuilder
Tags
Return values
staticsetEmitter()
Set the Emitter.
public
setEmitter(EmitterInterface $emitter) : $this
Parameters
- $emitter : EmitterInterface
Tags
Return values
$thisstopPropagation()
Stop event propagation.
public
stopPropagation() : $this