Documentation

ComposerAwareEvent extends Event
in package

Class ComposerAwareEvent.

Tags
author

MacFJA

license

MIT

Table of Contents

Properties

$composerReader  : Composer
The phar builder
$emitter  : EmitterInterface|null
The emitter instance.
$name  : string
The event name.
$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.
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

$name

The event name.

protected string $name

$propagationStopped

Has propagation stopped?

protected bool $propagationStopped = false

Methods

__construct()

Create a new event instance.

public __construct(string $name, Composer $composer) : mixed
Parameters
$name : string

The new event name

$composer : Composer

The composer.json reader instance

getName()

Get the event name.

public getName() : string
Tags
inheritdoc
Return values
string

isPropagationStopped()

Check whether propagation was stopped.

public isPropagationStopped() : bool
Tags
inheritdoc
Return values
bool

named()

Create a new event instance.

public static named(string $name[, Composer $composer = null ]) : static
Parameters
$name : string

The new event name

$composer : Composer = null

The composer.json reader instance

Tags
throws
InvalidArgumentException
Return values
static

stopPropagation()

Stop event propagation.

public stopPropagation() : $this
Tags
inheritdoc
Return values
$this

        
On this page

Search results