phpbotgram

Helper
in package

FinalYes

Internal helper for operations that may accept either a literal value or a nested `MagicFilter` chain on the right-hand side (`F->id == F->reply->fromUser->id`).

Direct port of upstream magic_filter.helper.resolve_if_needed (magic_filter/helper.py). The upstream function is a free function; we expose it as a static method to satisfy PHP namespacing.

Table of Contents

Methods

resolveIfNeeded()  : mixed
If `$value` is itself a `MagicFilter`, resolve it against the chain's original subject and return the resolved value; otherwise pass the literal through unchanged.
__construct()  : mixed

Methods

resolveIfNeeded()

If `$value` is itself a `MagicFilter`, resolve it against the chain's original subject and return the resolved value; otherwise pass the literal through unchanged.

public static resolveIfNeeded(mixed $value, mixed $initialValue) : mixed
Parameters
$value : mixed
$initialValue : mixed

__construct()

private __construct() : mixed
On this page

Search results