Index

iOptions

MMO\core\interfaces · 1 symbol · generated 30 Sep 2026

interface

iOptions

iOptions.php:15

Typed options: an object whose named constructor arguments stand for a string-keyed options array. A misspelled or mistyped option then fails at once (PHP rejects an unknown named argument, phpstan checks names and types), where a misspelled array key is silently ignored.

interface MMO\core\interfaces\iOptions
Namespace
MMO\core\interfaces
See
PrintOptions, DocumentOptions
Accepted next to an array wherever the framework takes these options; [`options()`](https://mmoframework.fr/documentation/mmo.core/php/arrays.md#options) turns either into the array the framework reads.

Methods1

toArray()

abstractiOptions.php:17
abstract function toArray(): array
returnsarraymixed> the options that are set, under the keys the framework reads (e.g. max-level)