FlagGenerator.php
Table of Contents
Classes
- FlagGenerator
- Sugary factory mirror of upstream's module-level `from aiogram import flags`
singleton. The Python original supports `flags.admin_only` (attribute access
with no parens), `flags.throttle(5)` (callable returning a decorator with a
value), and `flags.chat_action(action='typing')` (keyword form). PHP can't
make attribute access return a configurable value, so we collapse all three
into a single magic-static call form: `FlagGenerator::<name>(?$value)`.