Bånder

StdListener extends EventEmitter
in package
implements ListenerInterface

Table of Contents

Interfaces

ListenerInterface

Constants

TYPE_ALL  = 'all'

Properties

$data  : array<string|int, mixed>
Container for the outputted lines.
$eventName  : string
Name of the emitted event.

Methods

__construct()  : mixed
forwardedEvents()  : mixed
get()  : ProcessOutput
Returns the collected output lines.
handle()  : void
Handler for a new line of data.

Constants

Properties

$data

Container for the outputted lines.

private array<string|int, mixed> $data = [self::TYPE_ALL => [], \Symfony\Component\Process\Process::ERR => [], \Symfony\Component\Process\Process::OUT => []]

$eventName

Name of the emitted event.

private string $eventName

Methods

__construct()

public __construct([string $eventName = 'listen' ]) : mixed
Parameters
$eventName : string = 'listen'

handle()

Handler for a new line of data.

public handle(string $type, string $data) : void
Parameters
$type : string
$data : string

        
On this page

Search results