Linux webm002.cluster126.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
/
home
/
ariannadhf
/
www
/
wp-content
/
plugins
/
admin-menu-editor
/
customizables
/
Schemas
/
/home/ariannadhf/www/wp-content/plugins/admin-menu-editor/customizables/Schemas/Record.php
<?php namespace YahnisElsts\AdminMenuEditor\Customizable\Schemas; class Record extends Collection { public function __construct(Schema $keySchema, Schema $itemSchema, $label = null) { //Keys must be strings. An enum with only string values is also acceptable. $keysAreStrings = ($keySchema instanceof StringSchema) || (($keySchema instanceof Enum) && $keySchema->areAllValuesStrings()); if ( !$keysAreStrings ) { throw new \InvalidArgumentException('Key schema for Record must be a string schema or an enum with string values.'); } parent::__construct($itemSchema, $keySchema, $label); $this->keySchema = $keySchema; } public function getSimplifiedDataType() { return 'map'; //Helps ensure that empty records are serialized as {} instead of []. } }