php8.5
Home/ Manual/ parallel / input/ parallel\Events\Input::add

parallel\Events\Input::add

PHP function Edit on GitHub ✎

(0.9.0)

Inputs

Description

parallel\Events\Input::add(string $target, mixed $value): void

Shall set input for the given target

Exceptions

Warning

Shall throw parallel\Events\Input\Error\Existence if input for target already exists.

Warning

Shall throw parallel\Events\Input\Error\IllegalValue if value is illegal (Object, null).

Source: reference/parallel/parallel/input/add.xml · from the official PHP manual (php/doc-en)