*/ public static function set(): array { static $set = null; if ($set === null) { $set = array_fill_keys(self::CODES, true); } return $set; } /** * @return string */ public static function regexAlternation(): string { static $alt = null; if ($alt === null) { $alt = implode('|', self::CODES); } return $alt; } }