Skip to content

SchemaType

The kinds of shape a Rule can describe.

Struct and Dict are both “map” at the PHP level but mean different things: Struct has a fixed, known key set (a config entry like {class, params}); Dict has dynamic string keys sharing one value shape (e.g. a connection-name-keyed map of database entries). Union is for the genuinely alternative-shaped value — a bool that a %env(...)% placeholder may stand in for until load time — as opposed to Mixed, which describes a region that is not checked at all.

enum SchemaType

Since1.0.0
SourceConfig/Schema/SchemaType.php
CaseDescription
Struct
Dict
ListOf
String
Bool
Int
PhpClass
Enum
Union
Mixed
PropertyTypeDescription
$namestringreadonly.
MethodDescription
cases(): array

public static function cases(): array

Returns array